diff options
Diffstat (limited to 'sal/inc/osl/endian.h')
-rw-r--r-- | sal/inc/osl/endian.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/sal/inc/osl/endian.h b/sal/inc/osl/endian.h index 49d778ad9..9abf8cf8f 100644 --- a/sal/inc/osl/endian.h +++ b/sal/inc/osl/endian.h @@ -130,13 +130,31 @@ extern "C" { # endif #endif +#ifdef IOS +# include <machine/endian.h> +# if BYTE_ORDER == LITTLE_ENDIAN +# ifndef _LITTLE_ENDIAN +# define _LITTLE_ENDIAN +# endif +# elif BYTE_ORDER == BIG_ENDIAN +# ifndef _BIG_ENDIAN +# define _BIG_ENDIAN +# endif +# elif BYTE_ORDER == PDP_ENDIAN +# ifndef _PDP_ENDIAN +# define _PDP_ENDIAN +# endif +# endif +#endif + /** Check supported platform. */ #if !defined(_WIN32) && \ !defined(LINUX) && !defined(NETBSD) && \ !defined(AIX) && !defined(OPENBSD) && \ !defined(SOLARIS) && !defined(MACOSX) && !defined(FREEBSD) && \ - !defined(DRAGONFLY) + !defined(DRAGONFLY) && \ + !defined(IOS) # error "Target platform not specified !" #endif |