[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: simplification rewrite of stdint module installed into gnulib
From: |
Mark D. Baushke |
Subject: |
Re: simplification rewrite of stdint module installed into gnulib |
Date: |
Mon, 03 Jul 2006 01:30:27 -0700 |
[I sent a rather large e-mail message which had another variation of
this patch. I think this one is better. The other has not yet appeared
on the bug-gnulib or bug-cvs mailing lists.]
The following patch seems to be needed due to MacOS X 10.4.6 doing
a '#include <stdint.h>' from inside of <sys/types.h>.
-- Mark
Index: stdint_.h
===================================================================
RCS file: /sources/gnulib/gnulib/lib/stdint_.h,v
retrieving revision 1.28
diff -u -p -u -p -r1.28 stdint_.h
--- stdint_.h 2 Jul 2006 09:12:28 -0000 1.28
+++ stdint_.h 3 Jul 2006 08:26:08 -0000
@@ -35,6 +35,11 @@
/* <sys/types.h> defines some of the stdint.h types as well, on glibc,
IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>). */
#if @HAVE_SYS_TYPES_H@
+/* <sys/types.h> on MacOS X 10.4.6 includes <stdint.h> and needs the
+ real one rather than the generated version. */
+#if __APPLE__ && @HAVE_STDINT_H@
+# include @FULL_PATH_STDINT_H@
+#endif
# include <sys/types.h>
#endif
Re: simplification rewrite of stdint module installed into gnulib, Bruno Haible, 2006/07/04