Bayeux  3.4.1
Core Foundation library for SuperNEMO
Configure.h
Go to the documentation of this file.
1 /*============================================================================
2  KWSys - Kitware System Library
3  Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
4 
5  Distributed under the OSI-approved BSD License (the "License");
6  see accompanying file Copyright.txt for details.
7 
8  This software is distributed WITHOUT ANY WARRANTY; without even the
9  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  See the License for more information.
11 ============================================================================*/
12 #ifndef datatools_Configure_h
13 #define datatools_Configure_h
14 
15 /* If we are building a kwsys .c or .cxx file, let it use the kwsys
16  namespace. When not building a kwsys source file these macros are
17  temporarily defined inside the headers that use them. */
18 #if defined(KWSYS_NAMESPACE)
19 # define kwsys_ns(x) datatools##x
20 # define kwsysEXPORT datatools_EXPORT
21 #endif
22 
23 /* Disable some warnings inside kwsys source files. */
24 #if defined(KWSYS_NAMESPACE)
25 # if defined(__BORLANDC__)
26 # pragma warn -8027 /* function not inlined. */
27 # endif
28 # if defined(__INTEL_COMPILER)
29 # pragma warning (disable: 1572) /* floating-point equality test */
30 # endif
31 # if defined(__sgi) && !defined(__GNUC__)
32 # pragma set woff 3970 /* pointer to int conversion */
33 # pragma set woff 3968 /* 64 bit conversion */
34 # endif
35 #endif
36 
37 /* Whether kwsys namespace is "kwsys". */
38 #define datatools_NAME_IS_KWSYS 0
39 
40 /* If we are building a kwsys .c or .cxx file, suppress the Microsoft
41  deprecation warnings. */
42 #if defined(KWSYS_NAMESPACE)
43 # ifndef _CRT_NONSTDC_NO_DEPRECATE
44 # define _CRT_NONSTDC_NO_DEPRECATE
45 # endif
46 # ifndef _CRT_SECURE_NO_DEPRECATE
47 # define _CRT_SECURE_NO_DEPRECATE
48 # endif
49 # ifndef _SCL_SECURE_NO_DEPRECATE
50 # define _SCL_SECURE_NO_DEPRECATE
51 # endif
52 #endif
53 
54 /* Whether Large File Support is requested. */
55 #define datatools_LFS_REQUESTED 1
56 
57 /* Whether Large File Support is available. */
58 #if datatools_LFS_REQUESTED
59 # define datatools_LFS_AVAILABLE 1
60 #endif
61 
62 /* Setup Large File Support if requested. */
63 #if datatools_LFS_REQUESTED
64  /* Since LFS is requested this header must be included before system
65  headers whether or not LFS is available. */
66 # if 0 && (defined(_SYS_TYPES_H) || defined(_SYS_TYPES_INCLUDED))
67 # error "datatools/Configure.h must be included before sys/types.h"
68 # endif
69  /* Enable the large file API if it is available. */
70 # if datatools_LFS_AVAILABLE && \
71  !defined(datatools_LFS_NO_DEFINES)
72 # if !defined(_LARGEFILE_SOURCE) && \
73  !defined(datatools_LFS_NO_DEFINE_LARGEFILE_SOURCE)
74 # define _LARGEFILE_SOURCE
75 # endif
76 # if !defined(_LARGEFILE64_SOURCE) && \
77  !defined(datatools_LFS_NO_DEFINE_LARGEFILE64_SOURCE)
78 # define _LARGEFILE64_SOURCE
79 # endif
80 # if !defined(_LARGE_FILES) && \
81  !defined(datatools_LFS_NO_DEFINE_LARGE_FILES)
82 # define _LARGE_FILES
83 # endif
84 # if !defined(_FILE_OFFSET_BITS) && \
85  !defined(datatools_LFS_NO_DEFINE_FILE_OFFSET_BITS)
86 # define _FILE_OFFSET_BITS 64
87 # endif
88 # if 0 && (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS < 64)
89 # error "_FILE_OFFSET_BITS must be defined to at least 64"
90 # endif
91 # endif
92 #endif
93 
94 /* Setup the export macro. */
95 #if 0
96 # if defined(_WIN32) || defined(__CYGWIN__)
97 # if defined(datatools_EXPORTS)
98 # define datatools_EXPORT __declspec(dllexport)
99 # else
100 # define datatools_EXPORT __declspec(dllimport)
101 # endif
102 # elif __GNUC__ >= 4
103 # define datatools_EXPORT __attribute__ ((visibility("default")))
104 # else
105 # define datatools_EXPORT
106 # endif
107 #else
108 # define datatools_EXPORT
109 #endif
110 
111 /* Enable warnings that are off by default but are useful. */
112 #if !defined(datatools_NO_WARNING_ENABLE)
113 # if defined(_MSC_VER)
114 # pragma warning ( default : 4263 ) /* no override, call convention differs */
115 # endif
116 #endif
117 
118 /* Disable warnings that are on by default but occur in valid code. */
119 #if !defined(datatools_NO_WARNING_DISABLE)
120 # if defined(_MSC_VER)
121 # pragma warning (disable: 4097) /* typedef is synonym for class */
122 # pragma warning (disable: 4127) /* conditional expression is constant */
123 # pragma warning (disable: 4244) /* possible loss in conversion */
124 # pragma warning (disable: 4251) /* missing DLL-interface */
125 # pragma warning (disable: 4305) /* truncation from type1 to type2 */
126 # pragma warning (disable: 4309) /* truncation of constant value */
127 # pragma warning (disable: 4514) /* unreferenced inline function */
128 # pragma warning (disable: 4706) /* assignment in conditional expression */
129 # pragma warning (disable: 4710) /* function not inlined */
130 # pragma warning (disable: 4786) /* identifier truncated in debug info */
131 # endif
132 #endif
133 
134 /* MSVC 6.0 in release mode will warn about code it produces with its
135  optimizer. Disable the warnings specifically for this
136  configuration. Real warnings will be revealed by a debug build or
137  by other compilers. */
138 #if !defined(datatools_NO_WARNING_DISABLE_BOGUS)
139 # if defined(_MSC_VER) && (_MSC_VER < 1300) && defined(NDEBUG)
140 # pragma warning ( disable : 4701 ) /* Variable may be used uninitialized. */
141 # pragma warning ( disable : 4702 ) /* Unreachable code. */
142 # endif
143 #endif
144 
145 #endif