Skip to content
Snippets Groups Projects
Commit da8ac8a9 authored by Benjamin Buch's avatar Benjamin Buch Committed by Ben Boeckel
Browse files

vtkWin32Header: mask the `STRICT` preprocessor token

It messes up in libproj where an enumeration has a `STRICT` variant.
parent b2d73e7d
No related branches found
No related tags found
No related merge requests found
......@@ -51,10 +51,11 @@ Do_not_include_vtkWin32Header_directly_vtkSystemIncludes_includes_it;
// Windows specific stuff------------------------------------------
#if defined(_WIN32)
// define strict header for windows
#ifndef STRICT
#define STRICT
// Define strict header for Windows (definition as itself ensures that no code breaks)
#ifdef STRICT
#undef STRICT
#endif
#define STRICT STRICT
#ifndef NOMINMAX
#define NOMINMAX
......
# STRICT macro must not breaks libproj headers
Previously, VTK defined the `STRICT` for `windows.h` as empty if it was not defined. This breaks the `Proj` project.
The patch implements a workaround by `#define STRICT STRICT` to ensure that no codes breaks.
```cpp
#ifdef STRICT
#undef STRICT
#endif
#define STRICT STRICT
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment