This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch installed for warning in concat.c
- To: dj at redhat dot com
- Subject: Re: Patch installed for warning in concat.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 30 Sep 2001 00:32:30 -0400 (EDT)
- Cc: gcc-patches at gcc dot gnu dot org
> 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