svn commit: r228529 - head/sys/sys
David Chisnall
theraven at FreeBSD.org
Thu Dec 15 11:21:57 UTC 2011
Author: theraven
Date: Thu Dec 15 11:21:56 2011
New Revision: 228529
URL: http://svn.freebsd.org/changeset/base/228529
Log:
Add a pointless and superfluous GNUism that people at a certain large data
aggregation and advertising company seem to believe is standard.
Approved by: dim (mentor)
Modified:
head/sys/sys/stdint.h
Modified: head/sys/sys/stdint.h
==============================================================================
--- head/sys/sys/stdint.h Thu Dec 15 11:16:41 2011 (r228528)
+++ head/sys/sys/stdint.h Thu Dec 15 11:21:56 2011 (r228529)
@@ -64,4 +64,11 @@ typedef __uintmax_t uintmax_t;
#define _UINTMAX_T_DECLARED
#endif
+/* GNU and Darwin define this and people seem to think it's portable */
+#if defined(UINTPTR_MAX) && defined(UINT64_MAX) && (UINTPTR_MAX == UINT64_MAX)
+#define __WORDSIZE 64
+#else
+#define __WORDSIZE 32
+#endif
+
#endif /* !_SYS_STDINT_H_ */
More information about the svn-src-all
mailing list