Skip to content

Commit

Permalink
Let header checks tolerate the inclusion of Windows.h
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Apr 26, 2024
1 parent 33c1ca3 commit 48df97b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cub/cmake/header_test.in
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
//#define min(...) CUB_MACRO_CHECK('min', windows.h)
//#define max(...) CUB_MACRO_CHECK('max', windows.h)

#ifdef _WIN32
// On Windows, make sure any include of Windows.h (e.g. via NVTX) does not define the checked macros
# define WIN32_LEAN_AND_MEAN
#endif // _WIN32

// termios.h conflicts (NVIDIA/thrust#1547)
#define B0 CUB_MACRO_CHECK("B0", termios.h)

Expand Down

0 comments on commit 48df97b

Please sign in to comment.