diff --git a/source/Irrlicht/os.cpp b/source/Irrlicht/os.cpp index eea8efd..abb37c9 100644 --- a/source/Irrlicht/os.cpp +++ b/source/Irrlicht/os.cpp @@ -50,9 +50,6 @@ namespace os u64 Byteswap::byteswap(u64 num) {return bswap_64(num);} s64 Byteswap::byteswap(s64 num) {return bswap_64(num);} f32 Byteswap::byteswap(f32 num) {u32 tmp=IR(num); tmp=bswap_32(tmp); return (FR(tmp));} - // prevent accidental byte swapping of chars - u8 Byteswap::byteswap(u8 num) {return num;} - c8 Byteswap::byteswap(c8 num) {return num;} } } diff --git a/source/Irrlicht/os.h b/source/Irrlicht/os.h index 3e6343f..b047149 100644 --- a/source/Irrlicht/os.h +++ b/source/Irrlicht/os.h @@ -26,8 +26,8 @@ namespace os static s64 byteswap(s64 num); static f32 byteswap(f32 num); // prevent accidental swapping of chars - static u8 byteswap(u8 num); - static c8 byteswap(c8 num); + static inline u8 byteswap(u8 num) { return num; } + static inline c8 byteswap(c8 num) { return num; } }; class Printer