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(__BORLANDC__)
17 # pragma warn - 8027 /* function not inlined. */
18 # endif
19 # if defined(__INTEL_COMPILER)
20 # pragma warning(disable : 1572) /* floating-point equality test */
21 # endif
22 # if defined(__sgi) && !defined(__GNUC__)
23 # pragma set woff 3970 /* pointer to int conversion */
24 # pragma set woff 3968 /* 64 bit conversion */
25 # endif
26 #endif
27 
28 /* Whether kwsys namespace is "kwsys". */
29 #define vtksys_NAME_IS_KWSYS 0
30 
31 /* Setup the export macro. */
32 #if 1
33 # if defined(_WIN32) || defined(__CYGWIN__)
34 # if defined(vtksys_EXPORTS)
35 # define vtksys_EXPORT __declspec(dllexport)
36 # else
37 # define vtksys_EXPORT __declspec(dllimport)
38 # endif
39 # elif __GNUC__ >= 4
40 # define vtksys_EXPORT __attribute__((visibility("default")))
41 # else
42 # define vtksys_EXPORT
43 # endif
44 #else
45 # define vtksys_EXPORT
46 #endif
47 
48 /* Enable warnings that are off by default but are useful. */
49 #if !defined(vtksys_NO_WARNING_ENABLE)
50 # if defined(_MSC_VER)
51 # pragma warning(default : 4263) /* no override, call convention differs \
52  */
53 # endif
54 #endif
55 
56 /* Disable warnings that are on by default but occur in valid code. */
57 #if !defined(vtksys_NO_WARNING_DISABLE)
58 # if defined(_MSC_VER)
59 # pragma warning(disable : 4097) /* typedef is synonym for class */
60 # pragma warning(disable : 4127) /* conditional expression is constant */
61 # pragma warning(disable : 4244) /* possible loss in conversion */
62 # pragma warning(disable : 4251) /* missing DLL-interface */
63 # pragma warning(disable : 4305) /* truncation from type1 to type2 */
64 # pragma warning(disable : 4309) /* truncation of constant value */
65 # pragma warning(disable : 4514) /* unreferenced inline function */
66 # pragma warning(disable : 4706) /* assignment in conditional expression \
67  */
68 # pragma warning(disable : 4710) /* function not inlined */
69 # pragma warning(disable : 4786) /* identifier truncated in debug info */
70 # endif
71 # if defined(__BORLANDC__) && !defined(__cplusplus)
72 /* Code has no effect; raised by winnt.h in C (not C++) when ignoring an
73  unused parameter using "(param)" syntax (i.e. no cast to void). */
74 # pragma warn - 8019
75 # endif
76 #endif
77 
78 /* MSVC 6.0 in release mode will warn about code it produces with its
79  optimizer. Disable the warnings specifically for this
80  configuration. Real warnings will be revealed by a debug build or
81  by other compilers. */
82 #if !defined(vtksys_NO_WARNING_DISABLE_BOGUS)
83 # if defined(_MSC_VER) && (_MSC_VER < 1300) && defined(NDEBUG)
84 # pragma warning(disable : 4701) /* Variable may be used uninitialized. */
85 # pragma warning(disable : 4702) /* Unreachable code. */
86 # endif
87 #endif
88 
89 #endif