X-Git-Url: http://git.annexia.org/?p=portablexdr.git;a=blobdiff_plain;f=byteswap.h;fp=byteswap.h;h=c7d0cf806c1186bc39eaa8207796bf16070e4556;hp=991e85b084b3d0d445d7e60cbad6b8e700bebdd7;hb=0fb3d920a44476495cd4537d22dc2debd0c4512f;hpb=703843cfabe1d745807e96f9a9651c9d5fe56042 diff --git a/byteswap.h b/byteswap.h index 991e85b..c7d0cf8 100644 --- a/byteswap.h +++ b/byteswap.h @@ -24,6 +24,8 @@ #include #endif +#ifndef __bswap_constant_16 + /* Swap bytes in 16 bit value. */ #define __bswap_constant_16(x) \ ((((x) >> 8) & 0xffu) | (((x) & 0xffu) << 8)) @@ -173,3 +175,4 @@ htons (x) #endif #endif +#endif