Equalizer 1.0
|
00001 00002 /* Copyright (c) 2005-2011, Stefan Eilemann <eile@equalizergraphics.com> 00003 * 00004 * This library is free software; you can redistribute it and/or modify it under 00005 * the terms of the GNU Lesser General Public License version 2.1 as published 00006 * by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, but WITHOUT 00009 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00010 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00011 * details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public License 00014 * along with this library; if not, write to the Free Software Foundation, Inc., 00015 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00016 */ 00017 00023 #ifndef COBASE_OS_H 00024 #define COBASE_OS_H 00025 00026 #include <co/base/defines.h> 00027 #include <co/base/compiler.h> 00028 00029 #ifdef _WIN32 00030 # ifndef _MSC_VER 00031 # define USE_SYS_TYPES_FD_SET 00032 # endif 00033 # define _USE_MATH_DEFINES 00034 # define WIN32_LEAN_AND_MEAN 00035 # ifndef NOMINMAX 00036 # define NOMINMAX 00037 # endif 00038 # include <winsock2.h> 00039 # include <windows.h> 00040 # include <windef.h> 00041 #endif 00042 00043 #include <cmath> 00044 #include <cstdio> 00045 #include <cstdlib> 00046 00047 #ifndef _MSC_VER 00048 # include <stdint.h> 00049 # include <sys/param.h> // for MIN/MAX 00050 #endif 00051 00052 #ifdef Darwin 00053 # include <crt_externs.h> 00054 # define environ (*_NSGetEnviron()) 00055 #elif !defined(_WIN32) 00056 extern "C" char **environ; 00057 #endif 00058 00059 #endif //COBASE_OS_H