aboutsummaryrefslogtreecommitdiff
path: root/config/config.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'config/config.h.in')
-rw-r--r--config/config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/config.h.in b/config/config.h.in
index ae3b473d1d..95d0d3cf68 100644
--- a/config/config.h.in
+++ b/config/config.h.in
@@ -11,6 +11,12 @@
#define SIZEOF_TIME_T @SIZEOF_TIME_T@
#define SIZEOF_OFF_T @SIZEOF_OFF_T@
+#if @SIZEOF_VOID_PTR@ == 8
+#define ARCH_64
+#elif @SIZEOF_VOID_PTR@ == 4
+#define ARCH_32
+#endif
+
#define _FILE_OFFSET_BITS 64
#cmakedefine HAVE__NSGETENVIRON
#cmakedefine HAVE_CRT_EXTERNS_H