CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

csosdefs.h

00001 #ifndef __OSX_csosdefs_h
00002 #define __OSX_csosdefs_h
00003 //=============================================================================
00004 //
00005 //      Copyright (C)1999-2004 by Eric Sunshine <sunshine@sunshineco.com>
00006 //
00007 // The contents of this file are copyrighted by Eric Sunshine.  This work is
00008 // distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
00009 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
00010 // PARTICULAR PURPOSE.  You may distribute this file provided that this
00011 // copyright notice is retained.  Send comments to <sunshine@sunshineco.com>.
00012 //
00013 //=============================================================================
00014 //-----------------------------------------------------------------------------
00015 // csosdefs.h
00016 //
00017 //      MacOS/X-specific interface to common functionality.
00018 //
00019 //-----------------------------------------------------------------------------
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 #define CS_HAS_POSIX_MMAP
00030 #define CS_USE_CUSTOM_ISDIR
00031 #define CS_PATH_DELIMITER ':'
00032 #define CS_PATH_SEPARATOR '/'
00033 
00034 #define CS_MKDIR(p) mkdir(p,0755)
00035 
00036 #undef  CS_SOFTWARE_2D_DRIVER
00037 #define CS_SOFTWARE_2D_DRIVER "crystalspace.graphics2d.coregraphics"
00038 
00039 #undef  CS_OPENGL_2D_DRIVER
00040 #define CS_OPENGL_2D_DRIVER "crystalspace.graphics2d.glosx"
00041 
00042 #undef  CS_SOUND_DRIVER
00043 #define CS_SOUND_DRIVER "crystalspace.sound.driver.coreaudio"
00044 
00045 #define CS_NO_IEEE_OPTIMIZATIONS /* Note (1) */
00046 
00047 // Note (1)
00048 //   Matt Reda: I did some rough testing of csQint() and friends on the
00049 //   PowerPC.  It appears to work ok, but is actually slower.  Some simple
00050 //   tests show that csQint() is roughly twice as slow as a cast from double to
00051 //   long
00052 
00053 #endif // __OSX_csosdefs_h

Generated for Crystal Space by doxygen 1.3.9.1