CARLA
disable-ue4-macros.h
Go to the documentation of this file.
1 // Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #ifndef LIBCARLA_INCLUDED_DISABLE_UE4_MACROS_HEADER
8 #define LIBCARLA_INCLUDED_DISABLE_UE4_MACROS_HEADER
9 
10 #include "Carla.h"
11 
12 #ifndef BOOST_ERROR_CODE_HEADER_ONLY
13 # define BOOST_ERROR_CODE_HEADER_ONLY
14 #endif // BOOST_ERROR_CODE_HEADER_ONLY
15 
16 #ifndef BOOST_NO_EXCEPTIONS
17 # error LibCarla should be compiled with -DBOOST_NO_EXCEPTIONS inside UE4.
18 #endif // BOOST_NO_EXCEPTIONS
19 #ifndef ASIO_NO_EXCEPTIONS
20 # error LibCarla should be compiled with -DASIO_NO_EXCEPTIONS inside UE4.
21 #endif // ASIO_NO_EXCEPTIONS
22 #ifndef LIBCARLA_NO_EXCEPTIONS
23 # error LibCarla should be compiled with -DLIBCARLA_NO_EXCEPTIONS inside UE4.
24 #endif // LIBCARLA_NO_EXCEPTIONS
25 
26 #endif // LIBCARLA_INCLUDED_DISABLE_UE4_MACROS_HEADER
27 
28 #define LIBCARLA_INCLUDED_FROM_UE4
29 
30 // NOTE(Andrei): disable warning generated by undefined macros
31 // __GNUC__, __GNUC_MINOR__
32 // MSGPACK_ARCH_AMD64
33 // DBG, BETA, OFFICIAL_BUILD
34 // NTDDI_WIN7SP1
35 // _APISET_RTLSUPPORT_VER
36 // _APISET_INTERLOCKED_VER
37 // _APISET_SECURITYBASE_VER
38 // _WIN32_WINNT_WINTHRESHOLD
39 // NOTE(Andrei): Macros to detect which compiler is
40 // http://nadeausoftware.com/articles/2012/10/c_c_tip_how_detect_compiler_name_and_version_using_compiler_predefined_macros
41 #if defined(_MSC_VER)
42 # pragma warning(push)
43 # pragma warning(disable: 4668 4191 4647)
44 #endif
45 
46 #if defined(__clang__)
47 # pragma clang diagnostic push
48 # pragma clang diagnostic ignored "-Wmissing-braces"
49 # pragma clang diagnostic ignored "-Wunusable-partial-specialization"
50 # pragma clang diagnostic ignored "-Wundef"
51 # pragma clang diagnostic ignored "-Wall"
52 #endif
53 
54 #pragma push_macro("TEXT")
55 #undef TEXT
56 
57 #pragma push_macro("check")
58 #undef check
59 
60 #pragma push_macro("PI")
61 #undef PI