This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch installed for warning in concat.c


 > From: DJ Delorie <dj@redhat.com>
 > 
 > > recompiling concat.c.  Installed as obvious.
 > > 
 > > +#if HAVE_STDLIB_H
 > 
 > Obvious but wrong.  You should use #ifdef here, not #if.


Sorry, I was trying to follow the style already used in that file just
above for string.h/strings.h.

I've seen it done both ways, If you wish, I'll change all of them to
#ifdef.

How's this?

2001-09-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* concat.c: Use #ifdef not #if.

--- concat.c~	Sun Sep 30 00:28:33 2001
+++ concat.c	Sun Sep 30 00:29:13 2001
@@ -66,15 +66,15 @@ NOTES
 #include <varargs.h>
 #endif
 
-# if HAVE_STRING_H
+# ifdef HAVE_STRING_H
 #  include <string.h>
 # else
-#  if HAVE_STRINGS_H
+#  ifdef HAVE_STRINGS_H
 #   include <strings.h>
 #  endif
 # endif
 
-#if HAVE_STDLIB_H
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]