aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/include/sparcv9-linux-gnu/bits/wordsize.h
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-07-15 20:46:12 -0400
committerGitHub <noreply@github.com>2019-07-15 20:46:12 -0400
commit3f4abe97bdbe666dbb3532c14a97e414aae4caca (patch)
treeba08f2f14e79a8c8f7e83cea0344826fefffd9a2 /lib/libc/include/sparcv9-linux-gnu/bits/wordsize.h
parent33eaaadd01b20d1327b67758664ce1265216e471 (diff)
parentaff90c22520bbbadd56fbfd1378f161ee8a3cdb2 (diff)
downloadzig-3f4abe97bdbe666dbb3532c14a97e414aae4caca.tar.gz
zig-3f4abe97bdbe666dbb3532c14a97e414aae4caca.zip
Merge pull request #2892 from ziglang/install-with-zig-build
move some of the installation from cmake to zig build
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