Skip to content

Commit

Permalink
tweak tests/windowsh.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wojdyr committed Mar 28, 2024
1 parent ed924c0 commit 501254f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/windowsh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@
// Windows headers contain typedefs and macros (#define small char)
// that cause surprising effects when these names are used in the code.
#ifdef _WIN32

// this is necessary, we use std::min etc.
#define NOMINMAX

// tinydir.h defines both UNICODE and _UNICODE if only one is defined.
// If including <windows.h> before tinydir.h, the same needs to be done.
#if defined(_UNICODE) && !defined(UNICODE)
# define UNICODE
#endif

#include <windows.h>
#include <gemmi/addends.hpp>
#include <gemmi/align.hpp>
Expand Down

0 comments on commit 501254f

Please sign in to comment.