summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
Diffstat (limited to 'src/os')
-rw-r--r--src/os/macosx/osx_stdafx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os/macosx/osx_stdafx.h b/src/os/macosx/osx_stdafx.h
index 8faa26e5c..35cf21eee 100644
--- a/src/os/macosx/osx_stdafx.h
+++ b/src/os/macosx/osx_stdafx.h
@@ -5,6 +5,10 @@
#ifndef MACOS_STDAFX_H
#define MACOS_STDAFX_H
+/* We need to include this first as that "depends" on the compiler's setting
+ * of __LP64__. So before we define __LP64__ so it can be used. */
+#include <sys/cdefs.h>
+
/* __LP64__ only exists in 10.5 and higher */
#if defined(__APPLE__) && !defined(__LP64__)
# define __LP64__ 0