Prevent double inclusion.

This commit is contained in:
Andreas Jaeger 2002-01-08 10:19:33 +00:00
parent 3c2105f0b0
commit 5374babef3
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/* Macros to swap the order of bytes in integer values. m68k version. /* Macros to swap the order of bytes in integer values. m68k version.
Copyright (C) 1997 Free Software Foundation, Inc. Copyright (C) 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -21,6 +21,9 @@
# error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead." # error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."
#endif #endif
#ifndef _BITS_BYTESWAP_H
#define _BITS_BYTESWAP_H 1
/* Swap bytes in 16 bit value. We don't provide an assembler version /* Swap bytes in 16 bit value. We don't provide an assembler version
because GCC is smart enough to generate optimal assembler output, and because GCC is smart enough to generate optimal assembler output, and
this allows for better cse. */ this allows for better cse. */
@ -60,3 +63,5 @@
__bswap_64_r.__l[1] = __bswap_32 (__bswap_64_v.__l[0]); \ __bswap_64_r.__l[1] = __bswap_32 (__bswap_64_v.__l[0]); \
__bswap_64_r.__ll; }) __bswap_64_r.__ll; })
#endif #endif
#endif /* _BITS_BYTESWAP_H */