diff --git a/include/JSystem/JHostIO/JHICommonMem.h b/include/JSystem/JHostIO/JHICommonMem.h index 57c810c46f..b0a08fa02e 100644 --- a/include/JSystem/JHostIO/JHICommonMem.h +++ b/include/JSystem/JHostIO/JHICommonMem.h @@ -2,17 +2,14 @@ #define JHICOMMONMEM_H #include +#include "dusk/endian.h" inline u32 JHIhtonl(u32 v) { -#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ - return v; -#else - // todo -#endif + return BSWAP32(v); } inline u32 JHIntohl(u32 v) { - return v; + return BSWAP32(v); } template class JHIComPortManager;