Equalizer
1.2.1
|
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 # ifndef _WIN32_WINNT // Hopefully to higher than 0x500... 00034 # define _WIN32_WINNT 0x501 // => XP, for WM_XBUTTONDOWN and others 00035 # endif 00036 # define _USE_MATH_DEFINES 00037 # define WIN32_LEAN_AND_MEAN 00038 # ifndef NOMINMAX 00039 # define NOMINMAX 00040 # endif 00041 # include <winsock2.h> 00042 # include <windows.h> 00043 # include <windef.h> 00044 #endif 00045 00046 #include <cmath> 00047 #include <cstdio> 00048 #include <cstdlib> 00049 00050 #ifndef _MSC_VER 00051 # include <stdint.h> 00052 # include <sys/param.h> // for MIN/MAX 00053 #endif 00054 00055 #ifdef Darwin 00056 # include <crt_externs.h> 00057 # define environ (*_NSGetEnviron()) 00058 #elif !defined(_WIN32) 00059 extern "C" char **environ; 00060 #endif 00061 00062 #endif //COBASE_OS_H