Configure.h
Go to the documentation of this file.
1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2  file Copyright.txt or https://cmake.org/licensing#kwsys for details. */
3 #ifndef vtksys_Configure_h
4 #define vtksys_Configure_h
5 
6 /* If we are building a kwsys .c or .cxx file, let it use the kwsys
7  namespace. When not building a kwsys source file these macros are
8  temporarily defined inside the headers that use them. */
9 #if defined(KWSYS_NAMESPACE)
10 # define kwsys_ns(x) vtksys##x
11 # define kwsysEXPORT vtksys_EXPORT
12 #endif
13 
14 /* Disable some warnings inside kwsys source files. */
15 #if defined(KWSYS_NAMESPACE)
16 # if defined(__INTEL_COMPILER)
17 # pragma warning(disable : 1572) /* floating-point equality test */
18 # endif
19 # if defined(__sgi) && !defined(__GNUC__)
20 # pragma set woff 3970 /* pointer to int conversion */
21 # pragma set woff 3968 /* 64 bit conversion */
22 # endif
23 #endif
24 
25 /* Whether kwsys namespace is "kwsys". */
26 #define vtksys_NAME_IS_KWSYS 0
27 
28 /* Setup the export macro. */
29 #if 1
30 # if defined(_WIN32) || defined(__CYGWIN__)
31 # if defined(vtksys_EXPORTS)
32 # define vtksys_EXPORT __declspec(dllexport)
33 # else
34 # define vtksys_EXPORT __declspec(dllimport)
35 # endif
36 # elif __GNUC__ >= 4
37 # define vtksys_EXPORT __attribute__((visibility("default")))
38 # else
39 # define vtksys_EXPORT
40 # endif
41 #else
42 # define vtksys_EXPORT
43 #endif
44 
45 /* Enable warnings that are off by default but are useful. */
46 #if !defined(vtksys_NO_WARNING_ENABLE)
47 # if defined(_MSC_VER)
48 # pragma warning(default : 4263) /* no override, call convention differs \
49  */
50 # endif
51 #endif
52 
53 /* Disable warnings that are on by default but occur in valid code. */
54 #if !defined(vtksys_NO_WARNING_DISABLE)
55 # if defined(_MSC_VER)
56 # pragma warning(disable : 4097) /* typedef is synonym for class */
57 # pragma warning(disable : 4127) /* conditional expression is constant */
58 # pragma warning(disable : 4244) /* possible loss in conversion */
59 # pragma warning(disable : 4251) /* missing DLL-interface */
60 # pragma warning(disable : 4305) /* truncation from type1 to type2 */
61 # pragma warning(disable : 4309) /* truncation of constant value */
62 # pragma warning(disable : 4514) /* unreferenced inline function */
63 # pragma warning(disable : 4706) /* assignment in conditional expression \
64  */
65 # pragma warning(disable : 4710) /* function not inlined */
66 # pragma warning(disable : 4786) /* identifier truncated in debug info */
67 # endif
68 #endif
69 
70 /* MSVC 6.0 in release mode will warn about code it produces with its
71  optimizer. Disable the warnings specifically for this
72  configuration. Real warnings will be revealed by a debug build or
73  by other compilers. */
74 #if !defined(vtksys_NO_WARNING_DISABLE_BOGUS)
75 # if defined(_MSC_VER) && (_MSC_VER < 1300) && defined(NDEBUG)
76 # pragma warning(disable : 4701) /* Variable may be used uninitialized. */
77 # pragma warning(disable : 4702) /* Unreachable code. */
78 # endif
79 #endif
80 
81 #endif