[lib] Throw error for non-LE, non-BE architectures
This commit is contained in:
parent
f7add0d8b7
commit
69a93abf0f
|
@ -285,6 +285,8 @@ float owl_swap_float(const float f) ;
|
|||
# if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
# define owl_htonf(f) owl_swap_float(f)
|
||||
# define owl_ntohf(f) owl_swap_float(f)
|
||||
# else // __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
# error "This program does not handle strange architectures."
|
||||
# endif // __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
#endif // __BYTE_ORDER == __BIG_ENDIAN
|
||||
|
||||
|
|
Loading…
Reference in New Issue