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__) && !defined(__WRAP_GCCXML__) 90 # define VTK_WORKAROUND_WINDOWS_MANGLE 93 #if defined(_MSC_VER) // Visual studio 94 #pragma warning ( disable : 4311 ) 95 #pragma warning ( disable : 4312 ) 98 #define vtkGetWindowLong GetWindowLongPtr 99 #define vtkSetWindowLong SetWindowLongPtr 100 #define vtkLONG LONG_PTR 101 #define vtkGWL_WNDPROC GWLP_WNDPROC 102 #define vtkGWL_HINSTANCE GWLP_HINSTANCE 103 #define vtkGWL_USERDATA GWLP_USERDATA 107 #if defined(_MSC_VER) 109 # pragma warning ( default : 4263 ) 111 # if !defined(VTK_DISPLAY_WIN32_WARNINGS) 112 # pragma warning ( disable : 4003 ) 113 # pragma warning ( disable : 4097 ) 114 # pragma warning ( disable : 4127 ) 115 # pragma warning ( disable : 4244 ) 116 # pragma warning ( disable : 4251 ) 117 # pragma warning ( disable : 4305 ) 118 # pragma warning ( disable : 4309 ) 119 # pragma warning ( disable : 4514 ) 120 # pragma warning ( disable : 4706 ) 121 # pragma warning ( disable : 4710 ) 122 # pragma warning ( disable : 4786 ) 126 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x660) 128 # if !defined(VTK_DISPLAY_WIN32_WARNINGS) 140 #if defined(VTK_BUILD_SHARED_LIBS) 141 # define VTK_EXPORT VTK_ABI_EXPORT