summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sparc/bits/wordsize.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-11-14 07:41:08 +0000
committerEric Andersen <andersen@codepoet.org>2001-11-14 07:41:08 +0000
commita5cc55111f77315fc7e04613772237b52a3dbfdf (patch)
treeea62d66b343dbc91de8ab529c8983021a18eda7d /libc/sysdeps/linux/sparc/bits/wordsize.h
parentc4990c6859a4caab9710a07a0c9052c57a1d11d4 (diff)
Sync up sparc headers
Diffstat (limited to 'libc/sysdeps/linux/sparc/bits/wordsize.h')
-rw-r--r--libc/sysdeps/linux/sparc/bits/wordsize.h24
1 files changed, 6 insertions, 18 deletions
diff --git a/libc/sysdeps/linux/sparc/bits/wordsize.h b/libc/sysdeps/linux/sparc/bits/wordsize.h
index 62dad0c71..98c588450 100644
--- a/libc/sysdeps/linux/sparc/bits/wordsize.h
+++ b/libc/sysdeps/linux/sparc/bits/wordsize.h
@@ -1,19 +1,7 @@
-/* Copyright (C) 1999 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
+/* Determine the wordsize from the preprocessor defines. */
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with the GNU C Library; see the file COPYING.LIB. If not,
- write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
-
-#define __WORDSIZE 32
+#if defined __arch64__ || defined __sparcv9
+# define __WORDSIZE 64
+#else
+# define __WORDSIZE 32
+#endif