summaryrefslogtreecommitdiff
path: root/src/expand/proc_macro.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/expand/proc_macro.cpp')
-rw-r--r--src/expand/proc_macro.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/expand/proc_macro.cpp b/src/expand/proc_macro.cpp
index 2474db5b..3eb0c85d 100644
--- a/src/expand/proc_macro.cpp
+++ b/src/expand/proc_macro.cpp
@@ -17,6 +17,7 @@
#ifdef _WIN32
# define NOGDI // Don't include GDI functions (defines some macros that collide with mrustc ones)
# include <Windows.h>
+# undef min
#else
# include <unistd.h> // read/write/pipe
# include <spawn.h>