Kaydet (Commit) 63404bcf authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add defines for iOS

üst 6f8966f3
...@@ -130,13 +130,31 @@ extern "C" { ...@@ -130,13 +130,31 @@ extern "C" {
# endif # endif
#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. /** Check supported platform.
*/ */
#if !defined(_WIN32) && \ #if !defined(_WIN32) && \
!defined(LINUX) && !defined(NETBSD) && \ !defined(LINUX) && !defined(NETBSD) && \
!defined(AIX) && !defined(OPENBSD) && \ !defined(AIX) && !defined(OPENBSD) && \
!defined(SOLARIS) && !defined(MACOSX) && !defined(FREEBSD) && \ !defined(SOLARIS) && !defined(MACOSX) && !defined(FREEBSD) && \
!defined(DRAGONFLY) !defined(DRAGONFLY) && \
!defined(IOS)
# error "Target platform not specified !" # error "Target platform not specified !"
#endif #endif
......
...@@ -50,6 +50,13 @@ ...@@ -50,6 +50,13 @@
#define INCLUDED_SYS_TYPES_H #define INCLUDED_SYS_TYPES_H
#endif #endif
#elif defined (IOS)
#ifndef INCLUDED_SYS_TYPES_H
#include <sys/types.h>
#define INCLUDED_SYS_TYPES_H
#endif
#elif defined (WNT) #elif defined (WNT)
#ifndef INCLUDED_MALLOC_H #ifndef INCLUDED_MALLOC_H
......
...@@ -98,6 +98,17 @@ ...@@ -98,6 +98,17 @@
#define SAL_SYSCONFIGFILE( name ) "." name "rc" #define SAL_SYSCONFIGFILE( name ) "." name "rc"
#endif #endif
#ifdef IOS
#define SAL_UNX
#define SAL_DLLEXTENSION
#define SAL_DLLPREFIX "lib"
#define SAL_PRGEXTENSION ".bin"
#define SAL_PATHSEPARATOR ':'
#define SAL_PATHDELIMITER '/'
#define SAL_CONFIGFILE( name ) name "rc"
#define SAL_SYSCONFIGFILE( name ) "." name "rc"
#endif
#ifdef sun #ifdef sun
#undef sun #undef sun
#define sun sun #define sun sun
......
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
#endif #endif
#elif defined MACOSX #elif defined MACOSX
#define THIS_OS "MacOSX" #define THIS_OS "MacOSX"
#elif defined IOS
#define THIS_OS "iOS"
#elif defined NETBSD #elif defined NETBSD
#define THIS_OS "NetBSD" #define THIS_OS "NetBSD"
#elif defined FREEBSD #elif defined FREEBSD
...@@ -109,8 +111,4 @@ this is inserted for the case that the preprocessor ignores error ...@@ -109,8 +111,4 @@ this is inserted for the case that the preprocessor ignores error
#endif #endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment