VTK  9.3.20240329
vtkABI.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
32 #ifndef vtkABI_h
33 #define vtkABI_h
34 
35 #include "vtkOptions.h" // for VTK_USE_FUTURE_BOOL
36 
37 #if defined(_WIN32)
38 #define VTK_ABI_IMPORT __declspec(dllimport)
39 #define VTK_ABI_EXPORT __declspec(dllexport)
40 #define VTK_ABI_HIDDEN
41 #elif __GNUC__ >= 4
42 #define VTK_ABI_IMPORT __attribute__((visibility("default")))
43 #define VTK_ABI_EXPORT __attribute__((visibility("default")))
44 #define VTK_ABI_HIDDEN __attribute__((visibility("hidden")))
45 #else
46 #define VTK_ABI_IMPORT
47 #define VTK_ABI_EXPORT
48 #define VTK_ABI_HIDDEN
49 #endif
50 
51 #include "vtkABINamespace.h"
52 
53 /*--------------------------------------------------------------------------*/
54 /* If not already defined, define vtkTypeBool. When VTK was started, some */
55 /* compilers did not yet support the bool type, and so VTK often used int, */
56 /* or more rarely unsigned int, where it should have used bool. */
57 /* Eventually vtkTypeBool will switch to real bool. */
58 #ifndef VTK_TYPE_BOOL_TYPEDEFED
59 #define VTK_TYPE_BOOL_TYPEDEFED
60 #if VTK_USE_FUTURE_BOOL
61 typedef bool vtkTypeBool;
62 typedef bool vtkTypeUBool;
63 #else
64 typedef int vtkTypeBool;
65 typedef unsigned int vtkTypeUBool;
66 #endif
67 #endif
68 
69 #endif // vtkABI_h
70 // VTK-HeaderTest-Exclude: vtkABI.h
unsigned int vtkTypeUBool
Definition: vtkABI.h:65
int vtkTypeBool
Definition: vtkABI.h:64