diff options
| author | gingerBill <bill@gingerbill.org> | 2020-04-07 11:47:28 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-04-07 11:47:28 +0100 |
| commit | 29a3cb25d3e8db9ce9b42a68413c10c8551c4362 (patch) | |
| tree | 329f331d1607f644450b9e4b6505cea8515dce85 /src/common.cpp | |
| parent | 7ff690500ac74b916da4df6a6eb62c4dac8ced2b (diff) | |
Add extra guards for window-only performance checking
Diffstat (limited to 'src/common.cpp')
| -rw-r--r-- | src/common.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common.cpp b/src/common.cpp index 498b35401..8f91739a4 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -8,10 +8,10 @@ #endif #if defined(GB_SYSTEM_WINDOWS) + #define NOMINMAX 1 #include <windows.h> #undef NOMINMAX -#include <psapi.h> #endif #define GB_WINDOWS_H_INCLUDED @@ -21,6 +21,10 @@ #include <wchar.h> #include <stdio.h> +#if defined(GB_COMPILER_MSVC) +#include <psapi.h> +#endif + #include <math.h> template <typename U, typename V> |