summaryrefslogtreecommitdiffstats
path: root/arch_flags.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch_flags.c')
-rw-r--r--arch_flags.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch_flags.c b/arch_flags.c
new file mode 100644
index 00000000..a2945ae0
--- /dev/null
+++ b/arch_flags.c
@@ -0,0 +1,17 @@
+#include <stdio.h>
+
+int main()
+{
+ if (sizeof(void*) == 8) // Assume 64-bit Linux if pointers are 8 bytes.
+ printf("-DLIN64 ");
+ else
+ printf("-DLIN ");
+
+ printf("-DSIZEOF_VOID_P=%d -DSIZEOF_LONG=%d -DSIZEOF_INT=%d\n",
+ (int)sizeof(void*),
+ (int)sizeof(long),
+ (int)sizeof(int) );
+
+
+ return 0;
+}