VTK
vtkConfigure.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkConfigure.h.in
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 #ifndef vtkConfigure_h
16 #define vtkConfigure_h
17 
18 /* This header is configured by VTK's build process. */
19 
20 /*--------------------------------------------------------------------------*/
21 /* Platform Features */
22 
23 /* Byte order. */
24 /* All compilers that support Mac OS X define either __BIG_ENDIAN__ or
25  __LITTLE_ENDIAN__ to match the endianness of the architecture being
26  compiled for. This is not necessarily the same as the architecture of the
27  machine doing the building. In order to support Universal Binaries on
28  Mac OS X, we prefer those defines to decide the endianness.
29  On other platforms we use the result of the TRY_RUN. */
30 #if !defined(__APPLE__)
31 /* #undef VTK_WORDS_BIGENDIAN */
32 #elif defined(__BIG_ENDIAN__)
33 # define VTK_WORDS_BIGENDIAN
34 #endif
35 
36 /* Threading system. */
37 #define VTK_USE_PTHREADS
38 /* #undef VTK_USE_SPROC */
39 /* #undef VTK_HP_PTHREADS */
40 /* #undef VTK_USE_WIN32_THREADS */
41 # define VTK_MAX_THREADS 64
42 
43 /* Atomic operations */
44 #define VTK_HAVE_SYNC_BUILTINS
45 #if defined(WIN32)
46 /* #undef VTK_HAS_INTERLOCKEDADD */
47 #endif
48 
49 /* Size of fundamental data types. */
50 /* Mac OS X uses two data models, ILP32 (in which integers, long integers,
51  and pointers are 32-bit quantities) and LP64 (in which integers are 32-bit
52  quantities and long integers and pointers are 64-bit quantities). In order
53  to support Universal Binaries on Mac OS X, we rely on this knowledge
54  instead of testing the sizes of the building machine.
55  On other platforms we use the result of the TRY_RUN. */
56 #if !defined(__APPLE__)
57 # define VTK_SIZEOF_CHAR 1
58 # define VTK_SIZEOF_SHORT 2
59 # define VTK_SIZEOF_INT 4
60 # define VTK_SIZEOF_LONG 8
61 # define VTK_SIZEOF_FLOAT 4
62 # define VTK_SIZEOF_DOUBLE 8
63 # define VTK_SIZEOF_VOID_P 8
64 #else
65 # define VTK_SIZEOF_CHAR 1
66 # define VTK_SIZEOF_SHORT 2
67 # define VTK_SIZEOF_INT 4
68 # if defined(__LP64__) && __LP64__
69 # define VTK_SIZEOF_LONG 8
70 # define VTK_SIZEOF_VOID_P 8
71 # else
72 # define VTK_SIZEOF_LONG 4
73 # define VTK_SIZEOF_VOID_P 4
74 # endif
75 # define VTK_SIZEOF_FLOAT 4
76 # define VTK_SIZEOF_DOUBLE 8
77 #endif
78 
79 /* Define size of long long and/or __int64 bit integer type only if the type
80  exists. */
81 #if !defined(__APPLE__)
82  #define VTK_SIZEOF_LONG_LONG 8
83 #else
84  #define VTK_SIZEOF_LONG_LONG 8
85 #endif
86 
87 /* Whether type "long long" is enabled as a unique fundamental type. */
88 #define VTK_TYPE_USE_LONG_LONG
89 
90 /* Whether type "char" is signed (it may be signed or unsigned). */
91 #define VTK_TYPE_CHAR_IS_SIGNED 1
92 
93 /* Compiler features. */
94 #define VTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T
95 #define VTK_HAVE_SO_REUSEADDR
96 
97 /* Whether we require large files support. */
98 #define VTK_REQUIRE_LARGE_FILE_SUPPORT
99 
100 /* Whether reverse const iterator's have comparison operators. */
101 #define VTK_CONST_REVERSE_ITERATOR_COMPARISON
102 
103 /*--------------------------------------------------------------------------*/
104 /* VTK Platform Configuration */
105 
106 /* Whether the target platform supports shared libraries. */
107 /* #undef VTK_TARGET_SUPPORTS_SHARED_LIBS */
108 
109 /* Whether we are building shared libraries. */
110 #define VTK_BUILD_SHARED_LIBS
111 
112 /* Whether vtkIdType is a 64-bit integer type (or a 32-bit integer type). */
113 #define VTK_USE_64BIT_IDS
114 
115 #include "vtkVersionMacros.h" // removed by VTK_LEGACY_REMOVE
116 
117 /* C++ compiler used. */
118 #define VTK_CXX_COMPILER "/usr/bin/c++"
119 
120 /* Compatibility settings. */
121 /* #undef VTK_LEGACY_REMOVE */
122 /* #undef VTK_LEGACY_SILENT */
123 
124 /* Debug leaks support. */
125 /* #undef VTK_DEBUG_LEAKS */
126 
127 /* Should all New methods use the object factory override. */
128 /* #undef VTK_ALL_NEW_OBJECT_FACTORY */
129 
130 /*--------------------------------------------------------------------------*/
131 /* Setup VTK based on platform features and configuration. */
132 
133 /* We now always use standard streams. */
134 #ifndef VTK_LEGACY_REMOVE
135 # define VTK_USE_ANSI_STDLIB
136 #endif
137 
138 /* Setup vtkstd, a portable namespace for std. */
139 #ifndef VTK_LEGACY_REMOVE
140 # define vtkstd std
141 #endif
142 
143 /* Define a "vtkstd_bool" for backwards compatibility. Only use bool
144  if this file is included by a c++ file. */
145 #ifndef VTK_LEGACY_REMOVE
146 # if defined(__cplusplus)
147  typedef bool vtkstd_bool;
148 # else
149  typedef int vtkstd_bool;
150 # endif
151 #endif
152 
153 /* The maximum length of a file name in bytes including the
154  * terminating null.
155  */
156 #if defined(PATH_MAX) // Usually defined on Windows
157 # define VTK_MAXPATH PATH_MAX
158 #elif defined(MAXPATHLEN) // Usually defined on linux
159 # define VTK_MAXPATH MAXPATHLEN
160 #else
161 # define VTK_MAXPATH 32767 // Possible with Windows "extended paths"
162 #endif
163 
164 /* #undef VTK_USE_CXX11_FEATURES */
165 #ifdef VTK_USE_CXX11_FEATURES
166 # define VTK_OVERRIDE override
167 # define VTK_FINAL final
168 #else
169 # define VTK_OVERRIDE
170 # define VTK_FINAL
171 #endif
172 
173 #endif
int vtkstd_bool
Definition: vtkConfigure.h:149