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

Add defines for iOS

üst 6f8966f3
......@@ -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
......
......@@ -50,6 +50,13 @@
#define INCLUDED_SYS_TYPES_H
#endif
#elif defined (IOS)
#ifndef INCLUDED_SYS_TYPES_H
#include <sys/types.h>
#define INCLUDED_SYS_TYPES_H
#endif
#elif defined (WNT)
#ifndef INCLUDED_MALLOC_H
......
......@@ -98,6 +98,17 @@
#define SAL_SYSCONFIGFILE( name ) "." name "rc"
#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
#undef sun
#define sun sun
......
......@@ -45,6 +45,8 @@
#endif
#elif defined MACOSX
#define THIS_OS "MacOSX"
#elif defined IOS
#define THIS_OS "iOS"
#elif defined NETBSD
#define THIS_OS "NetBSD"
#elif defined FREEBSD
......@@ -109,8 +111,4 @@ this is inserted for the case that the preprocessor ignores error
#endif
/* 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