config.h
Go to the documentation of this file.
00001 #ifndef _OSL_CONFIG_H
00002 #define _OSL_CONFIG_H
00003 
00004 #include "osl/misc/cstdint.h"
00005 #include <boost/static_assert.hpp>
00006 #ifndef _WIN32
00007 #  include <stdint.h>
00008 #endif
00009 
00010 #if ((defined __FreeBSD__) || (defined __CYGWIN32__) || (defined _WIN32))
00011 #  define __WORDSIZE 32
00012 #endif
00013 
00018 // #define OSL_WORDSIZE_64_IN_32
00019 
00020 BOOST_STATIC_ASSERT(__WORDSIZE);
00025 #if ((__WORDSIZE == 64) || (defined (OSL_WORDSIZE_64_IN_32)))
00026 #  define OSL_WORDSIZE 64
00027 #else
00028 #  define OSL_WORDSIZE 32
00029 #endif
00030 
00031 #ifndef MINIMAL
00032 #  define ALLOW_KING_ABSENCE
00033 #endif
00034 
00035 #ifdef OSL_USE_TBB
00036 #  if (!defined OSL_SMP) and (! defined OSL_DFPN_SMP)
00037 #    error "OSL_USE_TBB is for OSL_SMP"
00038 #  endif
00039 #  define USE_TBB_HASH 1
00040 #  define USE_TBB_ATOMIC 1
00041 #endif
00042 
00043 // for helgrind or drd
00044 // #define OSL_USE_RACE_DETECTOR
00045 
00046 #ifdef OSL_USE_RACE_DETECTOR
00047 #  ifndef OSL_NO_SSE
00048 #    define OSL_NO_SSE 1
00049 #  endif
00050 #endif
00051 
00052 #ifdef _MSC_VER
00053 #pragma warning( disable : 4099 )
00054 #pragma warning( disable : 4146 )
00055 #pragma warning( disable : 4244 )
00056 #pragma warning( disable : 4267 )
00057 #pragma warning( disable : 4661 )
00058 #pragma warning( disable : 4800 )
00059 #pragma warning( disable : 4805 )
00060 #pragma warning( disable : 4906 )
00061 #pragma warning( disable : 4996 )
00062 #define OSL_NO_SSE 1
00063 #endif
00064 
00065 #endif /* _OSL_CONFIG_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines