[Spice-devel] [PATCH 12/20] mingw: workaround ximage.h #defining min/max

Christophe Fergeau cfergeau at redhat.com
Thu Mar 1 02:17:46 PST 2012


This confuses the deque implementation of gcc which uses std::min
std::max and causes compile failure.
---
 vdagent/vdagent.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/vdagent/vdagent.cpp b/vdagent/vdagent.cpp
index 06c701d..a288861 100644
--- a/vdagent/vdagent.cpp
+++ b/vdagent/vdagent.cpp
@@ -19,6 +19,8 @@
 #include "desktop_layout.h"
 #include "display_setting.h"
 #include "ximage.h"
+#undef max
+#undef min
 #include <lmcons.h>
 #include <queue>
 #include <set>
-- 
1.7.7.6



More information about the Spice-devel mailing list