summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--sysdeps/x86_64/bits/wordsize.h7
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c266b02a84..a350421dcd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2002-03-03  Andreas Jaeger  <aj@suse.de>
 
+	* sysdeps/x86_64/bits/wordsize.h: New file.
+
 	* elf/nodlopenmod2.c: Provide prototype to avoid warning.
 	* elf/tst-tlsmod1.c: Likewise.
 
diff --git a/sysdeps/x86_64/bits/wordsize.h b/sysdeps/x86_64/bits/wordsize.h
new file mode 100644
index 0000000000..e96a9f1add
--- /dev/null
+++ b/sysdeps/x86_64/bits/wordsize.h
@@ -0,0 +1,7 @@
+/* Determine the wordsize from the preprocessor defines.  */
+
+#if defined __x86_64__
+# define __WORDSIZE	64
+#else
+# define __WORDSIZE	32
+#endif