Skip to content

Commit

Permalink
Include Windows.h to uncover more defects on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc committed Apr 3, 2023
1 parent e3c2f8c commit d01b019
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/tests_high_five.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
#include <vector>
#include <tuple>

// We don't need windows specific functionality. However, to better detect defects caused by macros,
// we include this header.
// The list of identifiers is taken from `Boost::Predef`.
#if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(__TOS_WIN__) || \
defined(__WINDOWS__)
#include <Windows.h>
#endif

using ldcomplex = std::complex<long double>;
using dcomplex = std::complex<double>;
using fcomplex = std::complex<float>;
Expand Down

0 comments on commit d01b019

Please sign in to comment.