Maratyszcza / pthreadpool

Portable (POSIX/Windows/Emscripten) thread pool for C/C++
BSD 2-Clause "Simplified" License
342 stars 132 forks source link

Define `NOMINMAX` and `WIN32_LEAN_AND_MEAN` to avoid introducing unused macros. #12

Closed xkszltl closed 3 years ago

xkszltl commented 3 years ago

Fixed https://github.com/Maratyszcza/pthreadpool/issues/11

xkszltl commented 3 years ago

2 experiments:

  1. stdlib.h introduced a min, probably by itself since winsdk is correctly controlled by NOMINMAX image
  2. WIN32_LEAN_AND_MEAN is not enough: image