|
csosdefs.h00001 /* 00002 Copyright (C) 1999,2000 by Eric Sunshine <sunshine@sunshineco.com> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public 00015 License along with this library; if not, write to the Free 00016 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #ifndef __CSOSDEFS_H__ 00020 #define __CSOSDEFS_H__ 00021 00022 // The 2D graphics driver used by software renderer on this platform 00023 #define CS_SOFTWARE_2D_DRIVER_BEOS "crystalspace.graphics2d.be" 00024 00025 #define CS_SOFTWARE_2D_DRIVER CS_SOFTWARE_2D_DRIVER_BEOS 00026 00027 // The 2D graphics driver used by OpenGL renderer 00028 #define CS_OPENGL_2D_DRIVER "crystalspace.graphics2d.glbe" 00029 00030 // BeOS param.h unconditionally defines MAX and MIN, so we must remove the 00031 // definitions set up by csdefs.h in order to avoid redifinition warnings. 00032 #undef MIN 00033 #undef MAX 00034 #include <sys/param.h> 00035 #if !defined(MIN) 00036 #define MIN(a,b) (((a)<(b))?(a):(b)) 00037 #endif 00038 #if !defined(MAX) 00039 #define MAX(a,b) (((a)>(b))?(a):(b)) 00040 #endif 00041 00042 // SCF symbol export facility. 00043 #undef CS_EXPORTED_FUNCTION 00044 #define CS_EXPORTED_FUNCTION extern "C" __declspec(dllexport) 00045 00046 #if defined (CS_SYSDEF_PROVIDE_DIR) 00047 # define __NEED_GENERIC_ISDIR 00048 #endif 00049 00050 #if defined(CS_SYSDEF_PROVIDE_SOCKETS) 00051 # include <socket.h> 00052 # define CS_CLOSESOCKET closesocket 00053 # define CS_USE_FAKE_SOCKLEN_TYPE 00054 #endif 00055 00056 #if defined(CS_SYSDEF_PROVIDE_SELECT) 00057 # include <socket.h> 00058 # undef CS_SYSDEF_PROVIDE_SELECT 00059 #endif 00060 00061 #include <ByteOrder.h> 00062 #if B_HOST_IS_LENDIAN 00063 # define CS_LITTLE_ENDIAN 00064 #elif B_HOST_IS_BENDIAN 00065 # define CS_BIG_ENDIAN 00066 #else 00067 # error "Please define a suitable CS_XXX_ENDIAN macro in be/csosdefs.h!" 00068 #endif 00069 00070 #endif // __CSOSDEFS_H__ Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000 |