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]
Other format: [Raw text]

PATCH: Fix libcpp configury/portability issue


Redefinding a macro, that is, #defining a macro which already has been defined, will result in a build failure in later stages of building GCC, so let's #undef said macro before.

Built on i386-unknown-freebsd4.10 with an "interesting" configuration
in a slightly older tree (since current mainline doesn't bootstrap for completely unreleated reasons).


2004-10-30 Gerald Pfeifer <gerald@pfeifer.com>

* internal.h (HAVE_ICONV): #undef, before redefining.

Okay to apply?

Gerald

Index: internal.h
===================================================================
RCS file: /cvs/gcc/gcc/libcpp/internal.h,v
retrieving revision 1.7
diff -u -3 -p -r1.7 internal.h
--- internal.h	9 Sep 2004 19:16:55 -0000	1.7
+++ internal.h	30 Oct 2004 17:27:31 -0000
@@ -29,6 +29,7 @@ Foundation, 59 Temple Place - Suite 330,
 #if defined HAVE_ICONV_H && defined HAVE_ICONV
 #include <iconv.h>
 #else
+#undef HAVE_ICONV
 #define HAVE_ICONV 0
 typedef int iconv_t;  /* dummy */
 #endif


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