diff options
Diffstat (limited to 'intl/gettextP.h')
-rw-r--r-- | intl/gettextP.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intl/gettextP.h b/intl/gettextP.h index fd2547b2c7..bcbe2720a7 100644 --- a/intl/gettextP.h +++ b/intl/gettextP.h @@ -41,6 +41,10 @@ #endif +#ifdef _LIBC +# include <byteswap.h> +# define SWAP(i) bswap_32 (i) +#else static nls_uint32 SWAP PARAMS ((nls_uint32 i)); static inline nls_uint32 @@ -49,6 +53,7 @@ SWAP (i) { return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24); } +#endif struct loaded_domain |