summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/core/byteswap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/core/byteswap.h b/include/osmocom/core/byteswap.h
index 1ea5b3db..cecdc63e 100644
--- a/include/osmocom/core/byteswap.h
+++ b/include/osmocom/core/byteswap.h
@@ -32,7 +32,7 @@ static inline uint16_t osmo_swab16(uint16_t in)
return out;
}
-#ifdef OSMO_IS_LITTLE_ENDIAN
+#if OSMO_IS_LITTLE_ENDIAN == 1
#define osmo_ntohl(x) osmo_swab32(x)
#define osmo_ntohs(x) osmo_swab16(x)
#define osmo_htonl(x) osmo_swab32(x)