23 #ifndef vtkWin32Header_h
24 #define vtkWin32Header_h
26 #ifndef __VTK_SYSTEM_INCLUDES__INSIDE
30 #include "vtkConfigure.h"
37 #ifdef VTK_REQUIRE_LARGE_FILE_SUPPORT
38 # ifndef _LARGEFILE_SOURCE
39 # define _LARGEFILE_SOURCE
44 # ifndef _FILE_OFFSET_BITS
45 # define _FILE_OFFSET_BITS 64
65 #if defined(VTK_IN_VTK)
66 # undef VTK_INCLUDE_WINDOWS_H
71 # if defined(VTK_INCLUDE_WINDOWS_H)
74 typedef DWORD vtkWindowsDWORD;
75 typedef PVOID vtkWindowsPVOID;
76 typedef LPVOID vtkWindowsLPVOID;
77 typedef HANDLE vtkWindowsHANDLE;
78 typedef LPTHREAD_START_ROUTINE vtkWindowsLPTHREAD_START_ROUTINE;
81 typedef unsigned long vtkWindowsDWORD;
82 typedef void* vtkWindowsPVOID;
83 typedef vtkWindowsPVOID vtkWindowsLPVOID;
84 typedef vtkWindowsPVOID vtkWindowsHANDLE;
85 typedef vtkWindowsDWORD (__stdcall *vtkWindowsLPTHREAD_START_ROUTINE)(vtkWindowsLPVOID);
89 #if !defined(__VTK_WRAP__)
90 # define VTK_WORKAROUND_WINDOWS_MANGLE
93 #if defined(_MSC_VER) // Visual studio
94 #pragma warning ( disable : 4311 )
95 #pragma warning ( disable : 4312 )
97 #define vtkGetWindowLong GetWindowLongPtr
98 #define vtkSetWindowLong SetWindowLongPtr
99 #define vtkLONG LONG_PTR
100 #define vtkGWL_WNDPROC GWLP_WNDPROC
101 #define vtkGWL_HINSTANCE GWLP_HINSTANCE
102 #define vtkGWL_USERDATA GWLP_USERDATA
106 #if defined(_MSC_VER)
108 # pragma warning ( default : 4263 )
110 # if !defined(VTK_DISPLAY_WIN32_WARNINGS)
111 # pragma warning ( disable : 4003 )
112 # pragma warning ( disable : 4097 )
113 # pragma warning ( disable : 4127 )
114 # pragma warning ( disable : 4244 )
115 # pragma warning ( disable : 4251 )
116 # pragma warning ( disable : 4305 )
117 # pragma warning ( disable : 4309 )
118 # pragma warning ( disable : 4514 )
119 # pragma warning ( disable : 4706 )
120 # pragma warning ( disable : 4710 )
121 # pragma warning ( disable : 4786 )
125 #if defined(__BORLANDC__)
127 # if !defined(VTK_DISPLAY_WIN32_WARNINGS)
139 #if defined(VTK_BUILD_SHARED_LIBS)
140 # define VTK_EXPORT VTK_ABI_EXPORT
146 #define VTK_TK_EXPORT VTK_ABI_EXPORT