Equalizer 1.0

co/base/defines.h

00001  
00002 /* Copyright (c) 2010-2011, Stefan Eilemann <eile@eyescale.ch> 
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 
00018 #ifndef COBASE_DEFINES_H
00019 #define COBASE_DEFINES_H
00020 
00021 #ifdef __APPLE__
00022 #  include <co/base/definesDarwin.h>
00023 #endif
00024 #ifdef __linux
00025 #  include <co/base/definesLinux.h>
00026 #endif
00027 #ifdef _WIN32 //_MSC_VER
00028 #  include <co/base/definesWin32.h>
00029 #endif
00030 
00031 // Defining our own min/max macros seems to be the only sane way to get this
00032 // functionality across platforms thanks to some screwup in the MS header files.
00033 #define EQ_MAX(a,b) ((a)>(b)?(a):(b)) //!< returns the maximum of two values
00034 #define EQ_MIN(a,b) ((a)<(b)?(a):(b)) //!< returns the minimum of two values
00035 
00037 #define EQ_UNDEFINED_UINT32   (0xffffffffu)
00038 
00039 #define EQ_MAX_UINT32         (0xfffffff0u)
00040 
00042 #define EQ_TIMEOUT_INDEFINITE 0
00043 
00044 #endif // COBASE_DEFINES_H
Generated on Sun May 8 2011 19:11:05 for Equalizer 1.0 by  doxygen 1.7.3