aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include/sparcv9-linux-gnu/bits/wordsize.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/include/sparcv9-linux-gnu/bits/wordsize.h')
-rw-r--r--lib/libc/include/sparcv9-linux-gnu/bits/wordsize.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/libc/include/sparcv9-linux-gnu/bits/wordsize.h b/lib/libc/include/sparcv9-linux-gnu/bits/wordsize.h
new file mode 100644
index 0000000000..e08131d423
--- /dev/null
+++ b/lib/libc/include/sparcv9-linux-gnu/bits/wordsize.h
@@ -0,0 +1,11 @@
+/* Determine the wordsize from the preprocessor defines. */
+
+#if defined __arch64__ || defined __sparcv9
+# define __WORDSIZE 64
+# define __WORDSIZE_TIME64_COMPAT32 1
+#else
+# define __WORDSIZE 32
+# define __WORDSIZE32_SIZE_ULONG 0
+# define __WORDSIZE32_PTRDIFF_LONG 0
+# define __WORDSIZE_TIME64_COMPAT32 0
+#endif \ No newline at end of file