00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef CSUTIL_MACOSX_CSOSDEFS_H
00019 #define CSUTIL_MACOSX_CSOSDEFS_H
00020
00021 #include <unistd.h>
00022 #include <string.h>
00023 #include <sys/types.h>
00024 #include <sys/param.h>
00025 #include <sys/select.h>
00026 #include <sys/stat.h>
00027 #include <dirent.h>
00028
00029 #if defined(CS_UNIVERSAL_BINARY)
00030 #undef CS_BIG_ENDIAN
00031 #undef CS_LITTLE_ENDIAN
00032 #if defined(__BIG_ENDIAN__)
00033 #define CS_BIG_ENDIAN
00034 #elif defined(__LITTLE_ENDIAN__)
00035 #define CS_LITTLE_ENDIAN
00036 #else
00037 #error Unknown endianess for Mac OS X universal binary build
00038 #endif
00039 #endif
00040
00041 #if defined(CS_UNIVERSAL_BINARY)
00042 #undef CS_PROCESSOR_X86
00043 #undef CS_PROCESSOR_POWERPC
00044 #undef CS_PROCESSOR_NAME
00045 #undef CS_PROCESSOR_SIZE
00046 #undef CS_LONG_SIZE
00047 #if defined(__ppc__)
00048 #define CS_PROCESSOR_POWERPC
00049 #define CS_PROCESSOR_NAME "powerpc"
00050 #define CS_PROCESSOR_SIZE 32
00051 #define CS_LONG_SIZE 4
00052 #elif defined(__i386__)
00053 #define CS_PROCESSOR_X86
00054 #define CS_PROCESSOR_NAME "x86"
00055 #define CS_PROCESSOR_SIZE 32
00056 #define CS_LONG_SIZE 4
00057 #elif defined(__x86_64__)
00058 #define CS_PROCESSOR_X86
00059 #define CS_PROCESSOR_NAME "x86(64)"
00060 #define CS_PROCESSOR_SIZE 64
00061 #define CS_LONG_SIZE 8
00062 #else
00063 #error Unknown host CPU type for Mac OS X universal binary build
00064 #endif
00065 #endif
00066
00067 #define CS_HAVE_POSIX_MMAP
00068 #define CS_USE_CUSTOM_ISDIR
00069 #define CS_PATH_DELIMITER ':'
00070 #define CS_PATH_SEPARATOR '/'
00071
00072
00073 #undef CS_OPENGL_2D_DRIVER
00074 #define CS_OPENGL_2D_DRIVER "crystalspace.graphics2d.glosx"
00075
00076
00077 #undef CS_SNDSYS_DRIVER
00078 #define CS_SNDSYS_DRIVER "crystalspace.sndsys.software.driver.coreaudio"
00079
00080 #endif // CSUTIL_MACOSX_CSOSDEFS_H