aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2016-01-14 21:38:24 -0500
committerSeth Jackson <sethjackson@gmail.com>2016-01-14 21:40:56 -0500
commit755e56ba66cec39912331753de9367d7fa0f35d6 (patch)
treeff5fb8968bf4136f804a606e0989197995dcc976
parent964e52e81f25db64471b37252651c0da89d41d5a (diff)
downloadrneovim-755e56ba66cec39912331753de9367d7fa0f35d6.tar.gz
rneovim-755e56ba66cec39912331753de9367d7fa0f35d6.tar.bz2
rneovim-755e56ba66cec39912331753de9367d7fa0f35d6.zip
Windows: Undefine the Windows RGB macro.
Windows provides a RGB macro but we have our own in macros.h. Undefine the Windows one before including macros.h. See: https://msdn.microsoft.com/en-us/library/dd162937%28v=vs.85%29.aspx
-rw-r--r--src/nvim/os/win_defs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/os/win_defs.h b/src/nvim/os/win_defs.h
index e6a714601f..673fff3ad0 100644
--- a/src/nvim/os/win_defs.h
+++ b/src/nvim/os/win_defs.h
@@ -17,6 +17,9 @@
#define USE_CRNL
+// We have our own RGB macro in macros.h.
+#undef RGB
+
#ifdef _MSC_VER
# ifndef inline
# define inline __inline