csutil/macosx/csosdefs.h
00001 //============================================================================= 00002 // 00003 // Copyright (C)1999-2009 by Eric Sunshine <sunshine@sunshineco.com> 00004 // 00005 // The contents of this file are copyrighted by Eric Sunshine. This work is 00006 // distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 00007 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 00008 // PARTICULAR PURPOSE. You may distribute this file provided that this 00009 // copyright notice is retained. Send comments to <sunshine@sunshineco.com>. 00010 // 00011 //============================================================================= 00012 //----------------------------------------------------------------------------- 00013 // csutil/macosx/csosdefs.h 00014 // 00015 // MacOS/X-specific interface to common functionality. 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 #if defined(__ppc__) 00046 #define CS_PROCESSOR_POWERPC 00047 #define CS_PROCESSOR_NAME "powerpc" 00048 #elif defined(__i386__) 00049 #define CS_PROCESSOR_X86 00050 #define CS_PROCESSOR_NAME "x86" 00051 #else 00052 #error Unknown host CPU type for Mac OS X universal binary build 00053 #endif 00054 #endif 00055 00056 #define CS_HAVE_POSIX_MMAP 00057 #define CS_USE_CUSTOM_ISDIR 00058 #define CS_PATH_DELIMITER ':' 00059 #define CS_PATH_SEPARATOR '/' 00060 00061 #define CS_MKDIR(p) mkdir(p,0755) 00062 00063 #undef CS_SOFTWARE_2D_DRIVER 00064 #define CS_SOFTWARE_2D_DRIVER "crystalspace.graphics2d.coregraphics" 00065 00066 #undef CS_OPENGL_2D_DRIVER 00067 #define CS_OPENGL_2D_DRIVER "crystalspace.graphics2d.glosx" 00068 00069 #undef CS_SOUND_DRIVER 00070 #define CS_SOUND_DRIVER "crystalspace.sound.driver.coreaudio" 00071 00072 #undef CS_SNDSYS_DRIVER 00073 #define CS_SNDSYS_DRIVER "crystalspace.sndsys.software.driver.coreaudio" 00074 00075 #endif // CSUTIL_MACOSX_CSOSDEFS_H
Generated for Crystal Space 1.4.1 by doxygen 1.7.1