aboutsummaryrefslogtreecommitdiff
path: root/flang/runtime/lock.h
diff options
context:
space:
mode:
Diffstat (limited to 'flang/runtime/lock.h')
-rw-r--r--flang/runtime/lock.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/flang/runtime/lock.h b/flang/runtime/lock.h
index 9f27a82..46ca287 100644
--- a/flang/runtime/lock.h
+++ b/flang/runtime/lock.h
@@ -25,9 +25,7 @@
#if USE_PTHREADS
#include <pthread.h>
#elif defined(_WIN32)
-// Do not define macros for "min" and "max"
-#define NOMINMAX
-#include <windows.h>
+#include "flang/Common/windows-include.h"
#else
#include <mutex>
#endif