VTK
9.0.1
Common
Core
vtkABI.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkABI.h
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
=========================================================================*/
44
#ifndef vtkABI_h
45
#define vtkABI_h
46
47
#if defined(_WIN32)
48
#define VTK_ABI_IMPORT __declspec(dllimport)
49
#define VTK_ABI_EXPORT __declspec(dllexport)
50
#define VTK_ABI_HIDDEN
51
#elif __GNUC__ >= 4
52
#define VTK_ABI_IMPORT __attribute__((visibility("default")))
53
#define VTK_ABI_EXPORT __attribute__((visibility("default")))
54
#define VTK_ABI_HIDDEN __attribute__((visibility("hidden")))
55
#else
56
#define VTK_ABI_IMPORT
57
#define VTK_ABI_EXPORT
58
#define VTK_ABI_HIDDEN
59
#endif
60
61
/*--------------------------------------------------------------------------*/
62
/* If not already defined, define vtkTypeBool. When VTK was started, some */
63
/* compilers did not yet support the bool type, and so VTK often used int, */
64
/* or more rarely unsigned int, where it should have used bool. */
65
/* Eventually vtkTypeBool will switch to real bool. */
66
#ifndef VTK_TYPE_BOOL_TYPEDEFED
67
#define VTK_TYPE_BOOL_TYPEDEFED
68
#if 1
69
typedef
int
vtkTypeBool
;
70
typedef
unsigned
int
vtkTypeUBool
;
71
#else
72
typedef
bool
vtkTypeBool
;
73
typedef
bool
vtkTypeUBool
;
74
#endif
75
#endif
76
77
#endif // vtkABI_h
78
// VTK-HeaderTest-Exclude: vtkABI.h
vtkTypeUBool
unsigned int vtkTypeUBool
Definition:
vtkABI.h:70
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
Generated on Thu Jun 24 2021 15:17:26 for VTK by
1.8.17