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 #ifdef CS_HAVE_SYS_PARAM_H 00025 #include <sys/param.h> 00026 #endif 00027 #include <sys/select.h> 00028 #include <sys/stat.h> 00029 #include <dirent.h> 00030 00031 #include <AvailabilityMacros.h> 00032 #if defined(MAC_OS_X_VERSION_10_6) && \ 00033 MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 00034 #define CS_OSX_10_6 00035 #endif 00036 00037 #if defined(CS_UNIVERSAL_BINARY) 00038 #undef CS_BIG_ENDIAN 00039 #undef CS_LITTLE_ENDIAN 00040 #if defined(__BIG_ENDIAN__) 00041 #define CS_BIG_ENDIAN 00042 #elif defined(__LITTLE_ENDIAN__) 00043 #define CS_LITTLE_ENDIAN 00044 #else 00045 #error Unknown endianess for Mac OS X universal binary build 00046 #endif 00047 #endif 00048 00049 #if defined(CS_UNIVERSAL_BINARY) 00050 #undef CS_PROCESSOR_X86 00051 #undef CS_PROCESSOR_POWERPC 00052 #undef CS_PROCESSOR_NAME 00053 #undef CS_PROCESSOR_SIZE 00054 #undef CS_LONG_SIZE 00055 #if defined(__ppc__) 00056 #define CS_PROCESSOR_POWERPC 00057 #define CS_PROCESSOR_NAME "powerpc" 00058 #define CS_PROCESSOR_SIZE 32 00059 #define CS_LONG_SIZE 4 00060 #elif defined(__i386__) 00061 #define CS_PROCESSOR_X86 00062 #define CS_PROCESSOR_NAME "x86" 00063 #define CS_PROCESSOR_SIZE 32 00064 #define CS_LONG_SIZE 4 00065 #elif defined(__x86_64__) 00066 #define CS_PROCESSOR_X86 00067 #define CS_PROCESSOR_NAME "x86(64)" 00068 #define CS_PROCESSOR_SIZE 64 00069 #define CS_LONG_SIZE 8 00070 #else 00071 #error Unknown host CPU type for Mac OS X universal binary build 00072 #endif 00073 #endif 00074 00075 #define CS_HAVE_POSIX_MMAP 00076 #define CS_USE_CUSTOM_ISDIR 00077 #define CS_PATH_DELIMITER ':' 00078 #define CS_PATH_SEPARATOR '/' 00079 00080 // The default 2D graphics driver used by renderers on this platform. 00081 #undef CS_OPENGL_2D_DRIVER 00082 #define CS_OPENGL_2D_DRIVER "crystalspace.graphics2d.glosx" 00083 00084 // The default sound driver used on this platform. 00085 #undef CS_SNDSYS_DRIVER 00086 #define CS_SNDSYS_DRIVER "crystalspace.sndsys.software.driver.coreaudio" 00087 00088 #endif // CSUTIL_MACOSX_CSOSDEFS_H
Generated for Crystal Space 2.1 by doxygen 1.6.1
