aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Chisnall <theraven@FreeBSD.org>2011-12-15 11:21:56 +0000
committerDavid Chisnall <theraven@FreeBSD.org>2011-12-15 11:21:56 +0000
commit2ff02bff0995374ad20fcd59e00c095f8cf1c344 (patch)
tree7d83491349df6a503c8bb70c28b0c1af8311c809 /sys
parent4fb4550854099bd1609180bb53c5b89b5b8656ca (diff)
downloadsrc-2ff02bff0995374ad20fcd59e00c095f8cf1c344.tar.gz
src-2ff02bff0995374ad20fcd59e00c095f8cf1c344.zip
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)
Notes
Notes: svn path=/head/; revision=228529
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/stdint.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sys/stdint.h b/sys/sys/stdint.h
index d5d92a5f4611..aa5ac81d1017 100644
--- a/sys/sys/stdint.h
+++ b/sys/sys/stdint.h
@@ -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_ */