[flang-commits] [PATCH] D85656: [flang][msvc] Tell windows.h to not define min/max macros.

Michael Kruse via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Aug 12 12:36:31 PDT 2020


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe3d38b7b8898: [flang][msvc] Tell windows.h to not define min/max macros. (authored by Meinersbur).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85656/new/

https://reviews.llvm.org/D85656

Files:
  flang/runtime/file.cpp


Index: flang/runtime/file.cpp
===================================================================
--- flang/runtime/file.cpp
+++ flang/runtime/file.cpp
@@ -15,6 +15,7 @@
 #include <fcntl.h>
 #include <stdlib.h>
 #ifdef _WIN32
+#define NOMINMAX
 #include <io.h>
 #include <windows.h>
 #else


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85656.285160.patch
Type: text/x-patch
Size: 290 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20200812/0175e570/attachment.bin>


More information about the flang-commits mailing list