* src/xterm.c (SWAPCARD32, SAPCARD16): Use glibc/gnulib
byte-swapping functions if checking is disabled.
#include <sys/stat.h>
#include <flexmember.h>
#include <c-ctype.h>
+#include <byteswap.h>
#include "character.h"
#include "coding.h"
#endif
} xm_byte_order;
+#ifdef ENABLE_CHECKING
+
#define SWAPCARD32(l) \
{ \
struct { unsigned t : 32; } bit32; \
s = bit16.t; \
}
+#else
+#define SWAPCARD32(l) bswap_32 (l)
+#define SWAPCARD16(l) bswap_16 (l)
+#endif
+
typedef struct xm_targets_table_header
{
/* BYTE */ uint8_t byte_order;