summaryrefslogtreecommitdiff
path: root/src/expand/proc_macro.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-01-14 14:17:07 +0800
committerJohn Hodge <tpg@mutabah.net>2018-01-14 14:43:17 +0800
commitae34deb892458dbb75ab5492786babf1b3f360a0 (patch)
treeac625acc1ea540ec000b40f1947927ca9915d0f7 /src/expand/proc_macro.cpp
parentad9ee752049e9e853adc634df66700dae573f8b8 (diff)
downloadmrust-ae34deb892458dbb75ab5492786babf1b3f360a0.tar.gz
MSVC compile fixes
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>