00001
00002
00003
00004
00005
00006 #ifndef __CSOSDEFS_H__
00007 #define __CSOSDEFS_H__
00008
00009 #ifdef __cplusplus
00010 extern "C" {
00011 #endif
00012
00013 int strcasecmp (const char *str1, const char *str2);
00014 int strncasecmp (char const *dst, char const *src, int maxLen);
00015 char *strdup (const char *str);
00016 #define stricmp strcasecmp
00017
00018
00019 #undef SCF_EXPORT_FUNCTION
00020 #define SCF_EXPORT_FUNCTION extern "C" __declspec(export)
00021
00022 #ifdef CS_SYSDEF_PROVIDE_ACCESS
00023 # if __MWERKS__>=0x2400
00024 # include <unistd.h>
00025 # else
00026 int access (const char *path, int mode);
00027 # endif
00028 #endif // CS_SYSDEF_PROVIDE_ACCESS
00029
00030 #ifdef __cplusplus
00031 }
00032 #endif
00033
00034
00035 #define CS_SOFTWARE_2D_DRIVER "crystalspace.graphics2d.macintosh"
00036 #define CS_OPENGL_2D_DRIVER "crystalspace.graphics2d.glmac"
00037
00038
00039 #define CS_SOUND_DRIVER "crystalspace.sound.driver.macintosh"
00040
00041 #if defined (CS_SYSDEF_PROVIDE_DIR)
00042 # define __NEED_GENERIC_ISDIR
00043 #endif
00044
00045
00046 #if defined (CS_SYSDEF_PROVIDE_GETCWD) || defined (CS_SYSDEF_PROVIDE_UNLINK)
00047 #if __MWERKS__>=0x2400
00048 #include <unistd.h>
00049 #endif
00050 #endif
00051
00052 #if defined (CS_SYSDEF_PROVIDE_SELECT)
00053 typedef unsigned long fd_set;
00054 #undef CS_SYSDEF_PROVIDE_SELECT
00055 #endif
00056
00057 #if defined (PROC_M68K) || defined (PROC_POWERPC)
00058 # define CS_BIG_ENDIAN
00059 #else
00060 # error "Please define a suitable CS_XXX_ENDIAN macro in mac/csosdefs.h!"
00061 #endif
00062
00063 #endif // __CSOSDEFS_H__