summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/x86_64/bits/wordsize.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-02-15 01:27:10 +0000
committerMike Frysinger <vapier@gentoo.org>2005-02-15 01:27:10 +0000
commit1fef64b22811709b2e640d341237bce1c8081203 (patch)
tree1ae6ea157aa30281b73e42ed1607ebc6a601faaf /libc/sysdeps/linux/x86_64/bits/wordsize.h
parentdc3e0e4695d9cf5700ab4b3b245f227be21b907a (diff)
headers for x86_64
Diffstat (limited to 'libc/sysdeps/linux/x86_64/bits/wordsize.h')
-rw-r--r--libc/sysdeps/linux/x86_64/bits/wordsize.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/x86_64/bits/wordsize.h b/libc/sysdeps/linux/x86_64/bits/wordsize.h
new file mode 100644
index 000000000..a40a0d816
--- /dev/null
+++ b/libc/sysdeps/linux/x86_64/bits/wordsize.h
@@ -0,0 +1,8 @@
+/* Determine the wordsize from the preprocessor defines. */
+
+#if defined __x86_64__
+# define __WORDSIZE 64
+# define __WORDSIZE_COMPAT32 1
+#else
+# define __WORDSIZE 32
+#endif