Skip to content

Commit

Permalink
Macro checks for WIN32_LEAN_AND_MEAN and NOMINMAX, fixes #100
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbinks committed Aug 8, 2023
1 parent 0d0b53b commit f54acf3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ namespace
#endif

#ifdef ENKI_USE_WINDOWS_PROCESSOR_API
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif

#ifndef NOMINMAX
#define NOMINMAX
#endif
#include "Windows.h"
#endif

Expand Down

0 comments on commit f54acf3

Please sign in to comment.