configure.ac: clean up; byteswap.h: avoid redefinition errors
[portablexdr.git] / byteswap.h
index 991e85b..c7d0cf8 100644 (file)
@@ -24,6 +24,8 @@
 #include <sys/param.h>
 #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