aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/s390
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2002-01-08 10:19:35 +0000
committerAndreas Jaeger <aj@suse.de>2002-01-08 10:19:35 +0000
commit5c26fecb6f7dae69c878c2ecdeb81636e571593c (patch)
treefa79dbd586fc7370ab07b45d17ca548507f618a3 /sysdeps/s390
parent8e57fc70831ebb0210aebfd28f0d1720193f308b (diff)
downloadglibc-5c26fecb6f7dae69c878c2ecdeb81636e571593c.tar
glibc-5c26fecb6f7dae69c878c2ecdeb81636e571593c.tar.gz
glibc-5c26fecb6f7dae69c878c2ecdeb81636e571593c.tar.bz2
glibc-5c26fecb6f7dae69c878c2ecdeb81636e571593c.zip
Prevent double inclusion.
Diffstat (limited to 'sysdeps/s390')
-rw-r--r--sysdeps/s390/s390-32/bits/byteswap.h7
-rw-r--r--sysdeps/s390/s390-64/bits/byteswap.h9
2 files changed, 12 insertions, 4 deletions
diff --git a/sysdeps/s390/s390-32/bits/byteswap.h b/sysdeps/s390/s390-32/bits/byteswap.h
index 0f2de099b2..ae128042f1 100644
--- a/sysdeps/s390/s390-32/bits/byteswap.h
+++ b/sysdeps/s390/s390-32/bits/byteswap.h
@@ -1,5 +1,5 @@
/* Macros to swap the order of bytes in integer values. s390 version.
- Copyright (C) 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
This file is part of the GNU C Library.
@@ -22,6 +22,9 @@
# error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."
#endif
+#ifndef _BITS_BYTESWAP_H
+#define _BITS_BYTESWAP_H 1
+
#define __bswap_constant_16(x) \
((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
@@ -84,3 +87,5 @@
__r.__l[1] = __bswap_32 (__w.__l[0]); \
__r.__ll; })
#endif
+
+#endif /* _BITS_BYTESWAP_H */
diff --git a/sysdeps/s390/s390-64/bits/byteswap.h b/sysdeps/s390/s390-64/bits/byteswap.h
index 3af2ccecde..b8cfdb2cb5 100644
--- a/sysdeps/s390/s390-64/bits/byteswap.h
+++ b/sysdeps/s390/s390-64/bits/byteswap.h
@@ -1,5 +1,5 @@
/* Macros to swap the order of bytes in integer values. 64 bit S/390 version.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002 Free Software Foundation, Inc.
Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com).
This file is part of the GNU C Library.
@@ -22,6 +22,9 @@
# error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."
#endif
+#ifndef _BITS_BYTESWAP_H
+#define _BITS_BYTESWAP_H 1
+
#define __bswap_constant_16(x) \
((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))
@@ -29,7 +32,7 @@
#if defined __GNUC__ && __GNUC__ >= 2
# define __bswap_16(x) \
(__extension__ \
- ({ unsigned short int __v; \
+ ({ unsigned short int __v; \
if (__builtin_constant_p (x)) \
__v = __bswap_constant_16 (x); \
else { \
@@ -90,4 +93,4 @@
# define __bswap_64(x) __bswap_constant_64 (x)
#endif
-
+#endif /* _BITS_BYTESWAP_H */