[Spice-devel] [PATCH 04/11] client/common: mingw32: workaround HAVE_STDLIB_H redefined in jconfig.h

Alon Levy alevy at redhat.com
Fri Jan 13 03:35:47 PST 2012


---
 client/red_gdi_canvas.cpp |    3 +++
 common/gdi_canvas.c       |    3 +++
 common/sw_canvas.c        |    3 +++
 3 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/client/red_gdi_canvas.cpp b/client/red_gdi_canvas.cpp
index ed091af..6ac2e8a 100644
--- a/client/red_gdi_canvas.cpp
+++ b/client/red_gdi_canvas.cpp
@@ -15,6 +15,9 @@
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
 #ifdef HAVE_CONFIG_H
+#ifdef __MINGW32__
+#undef HAVE_STDLIB_H
+#endif
 #include <config.h>
 #endif
 
diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c
index f67aadf..64fbbf5 100644
--- a/common/gdi_canvas.c
+++ b/common/gdi_canvas.c
@@ -16,6 +16,9 @@
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
 #ifdef HAVE_CONFIG_H
+#ifdef __MINGW32__
+#undef HAVE_STDLIB_H
+#endif
 #include <config.h>
 #endif
 
diff --git a/common/sw_canvas.c b/common/sw_canvas.c
index 651c52b..0f67c80 100644
--- a/common/sw_canvas.c
+++ b/common/sw_canvas.c
@@ -16,6 +16,9 @@
    License along with this library; if not, see <http://www.gnu.org/licenses/>.
 */
 #ifdef HAVE_CONFIG_H
+#ifdef __MINGW32__
+#undef HAVE_STDLIB_H
+#endif
 #include <config.h>
 #endif
 
-- 
1.7.8.2



More information about the Spice-devel mailing list