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