diff options
| author | Julien Schueller <schueller@phimeca.com> | 2021-11-19 17:56:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-19 17:56:49 +0100 |
| commit | 59a36d6904c167a51d877dc7674b662c0e417c1b (patch) | |
| tree | 287763ad4a26083a1740182d5b5e27b768ca1aa2 /include | |
| parent | 81ef87fb1f8bfb01d6541b12dda9a310d1ca596c (diff) | |
| download | PROJ-59a36d6904c167a51d877dc7674b662c0e417c1b.tar.gz PROJ-59a36d6904c167a51d877dc7674b662c0e417c1b.zip | |
Fix windows.h conflict with Criterion::STRICT
If window.h is included in the same compilation unit we can expect this kind of errors:
```
util.hpp:348:15: error: expected identifier before ‘,’ token
348 | STRICT,
```
Diffstat (limited to 'include')
| -rw-r--r-- | include/proj/util.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/proj/util.hpp b/include/proj/util.hpp index 97be4c16..abe289e9 100644 --- a/include/proj/util.hpp +++ b/include/proj/util.hpp @@ -33,6 +33,11 @@ #error Must have C++11 or newer. #endif +// windows.h can confict with Criterion::STRICT +#ifdef STRICT +#undef STRICT +#endif + #include <exception> #include <map> #include <memory> |
