All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
config.h
Go to the documentation of this file.
1 #ifndef _OSL_CONFIG_H
2 #define _OSL_CONFIG_H
3 
4 #include "osl/misc/cstdint.h"
5 #include <boost/static_assert.hpp>
6 #ifndef _WIN32
7 # include <stdint.h>
8 #endif
9 
10 #if ((defined __FreeBSD__) || (defined __CYGWIN32__) || (defined _WIN32))
11 # define __WORDSIZE 32
12 #endif
13 
18 // #define OSL_WORDSIZE_64_IN_32
19 
20 BOOST_STATIC_ASSERT(__WORDSIZE);
25 #if ((__WORDSIZE == 64) || (defined (OSL_WORDSIZE_64_IN_32)))
26 # define OSL_WORDSIZE 64
27 #else
28 # define OSL_WORDSIZE 32
29 #endif
30 
31 #ifndef MINIMAL
32 # define ALLOW_KING_ABSENCE
33 #endif
34 
35 #ifdef OSL_USE_TBB
36 # if (!defined OSL_SMP) and (! defined OSL_DFPN_SMP)
37 # error "OSL_USE_TBB is for OSL_SMP"
38 # endif
39 # define USE_TBB_HASH 1
40 # define USE_TBB_ATOMIC 1
41 #endif
42 
43 // for helgrind or drd
44 // #define OSL_USE_RACE_DETECTOR
45 
46 #ifdef OSL_USE_RACE_DETECTOR
47 # ifndef OSL_NO_SSE
48 # define OSL_NO_SSE 1
49 # endif
50 #endif
51 
52 #ifdef _MSC_VER
53 #pragma warning( disable : 4099 )
54 #pragma warning( disable : 4146 )
55 #pragma warning( disable : 4244 )
56 #pragma warning( disable : 4267 )
57 #pragma warning( disable : 4661 )
58 #pragma warning( disable : 4800 )
59 #pragma warning( disable : 4805 )
60 #pragma warning( disable : 4906 )
61 #pragma warning( disable : 4996 )
62 #define OSL_NO_SSE 1
63 #endif
64 
65 #endif /* _OSL_CONFIG_H */