RMF
config.h
1 /*
2  * \file RMF/RMF_config.h
3  * \brief Configuration and utility macros
4  * Provide version information, plus macros to mark functions and
5  * classes as exported from a DLL/.so and to set up namespaces.
6  *
7  * Copyright 2007-2022 IMP Inventors. All rights reserved.
8  *
9  */
10 
11 #ifndef RMF_CONFIG_H
12 #define RMF_CONFIG_H
13 
14 /* Protect against RMFEXPORT being defined already */
15 #ifdef RMFEXPORT
16 #undef RMFEXPORT
17 #endif
18 
19 #ifdef _MSC_VER
20 
21 #ifdef RMF_EXPORTS
22 #define RMFEXPORT __declspec(dllexport)
23 #else // EXPORTS
24 #define RMFEXPORT __declspec(dllimport)
25 #endif // EXPORTS
26 
27 #else // _MSC_VER
28 
29 #define RMFEXPORT
30 
31 #endif // _MSC_VER
32 
33 // Version number
34 #define RMF_VERSION_MAJOR 1
35 #define RMF_VERSION_MINOR 6
36 #define RMF_VERSION_MICRO 0
37 #define RMF_VERSION 100600
38 
39 #define RMF_HAS_LOG4CXX 1
40 #define RMF_HAS_NUMPY 1
41 
42 #define RMF_HAS_DEPRECATED_BACKENDS 1
43 
44 #ifdef _MSC_VER
45 #pragma warning(disable: 4003)
46 #endif
47 
48 #include "RMF/compiler_macros.h" // IWYU pragma: export
49 
50 #endif /* RMF_CONFIG_H */
Various compiler workarounds.