csutil/unix/csosdefs.h
00001 /* 00002 Copyright (C) 1998 by Jorrit Tyberghein 00003 Written by Andrew Zabolotny <bit@eltech.ru> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public 00016 License along with this library; if not, write to the Free 00017 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 #ifndef __CS_CSOSDEFS_H__ 00021 #define __CS_CSOSDEFS_H__ 00022 00023 #include <math.h> 00024 #include <unistd.h> 00025 #include <sys/types.h> 00026 #ifdef CS_HAVE_SYS_PARAM_H 00027 #include <sys/param.h> // For MAXPATHLEN 00028 #endif 00029 #include <sys/select.h> 00030 #include <sys/stat.h> 00031 #include <dirent.h> 00032 #include <stdarg.h> 00033 00034 #include "sanity.inc" 00035 00036 #ifndef F_OK 00037 # define F_OK 0 00038 #endif 00039 #ifndef R_OK 00040 # define R_OK 2 00041 #endif 00042 #ifndef W_OK 00043 # define W_OK 4 00044 #endif 00045 00046 #define CS_HAVE_POSIX_MMAP 00047 #define CS_USE_CUSTOM_ISDIR 00048 #define CS_PATH_DELIMITER ':' 00049 #define CS_PATH_SEPARATOR '/' 00050 00051 // The default 2D graphics driver used by renderers on this platform. 00052 #define CS_OPENGL_2D_DRIVER "crystalspace.graphics2d.glx" 00053 00054 // The default sound driver used on this platform. 00055 #define CS_SNDSYS_DRIVER "crystalspace.sndsys.software.driver.alsa" 00056 00057 #if !defined(CS_STATIC_LINKED) && defined(CS_UNIX_PLUGIN_REQUIRES_MAIN) 00058 // Dummy main function required for plugin modules on some Unix platforms. 00059 // Implementing this function ensures that global constructors in plugin 00060 // modules are invoked. 00061 #define CS_IMPLEMENT_PLATFORM_PLUGIN \ 00062 int main (int argc, char* argv[]) \ 00063 { \ 00064 (void)argc; (void)argv; \ 00065 return 0; \ 00066 } 00067 #endif // !CS_STATIC_LINKED && CS_UNIX_PLUGIN_REQUIRES_MAIN 00068 00069 #endif // __CS_CSOSDEFS_H__
Generated for Crystal Space 2.1 by doxygen 1.6.1
