aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-curses.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2015-06-21 17:52:38 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-06-22 04:10:39 +0200
commit1d626c2785117f9c9bf6683d98f57e825a9e7938 (patch)
tree654cafa4764b1360bdda7dff53aee06933dad173 /src/interface-curses.cpp
parentac87230767db4779a10acf0eaba6493327a3c257 (diff)
downloadsciteco-1d626c2785117f9c9bf6683d98f57e825a9e7938.tar.gz
use WIN32_LEAN_AND_MEAN macro when including windows.h
this avoids some problematic includes, so we no longer have to #undef interface. Also it should speed up building a bit.
Diffstat (limited to 'src/interface-curses.cpp')
-rw-r--r--src/interface-curses.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/interface-curses.cpp b/src/interface-curses.cpp
index aabadc4..b6a2a6f 100644
--- a/src/interface-curses.cpp
+++ b/src/interface-curses.cpp
@@ -59,13 +59,8 @@
#ifdef HAVE_WINDOWS_H
/* here it shouldn't cause conflicts with other headers */
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-
-/*
- * MinGW headers define an `interface` macro to work around
- * Objective C issues
- */
-#undef interface
#endif
/**