summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-01-13 12:41:18 +0200
committerAlon Levy <alevy@redhat.com>2012-01-13 17:42:22 +0200
commit4236d1440b328223fec50a0367647740f38abcd6 (patch)
tree0c74195f62d51bfb46851d635ec1ec39db695252 /common
parentbe3711f8b476c4da9b32676757e57c63596f9890 (diff)
downloadspice-4236d1440b328223fec50a0367647740f38abcd6.tar.gz
spice-4236d1440b328223fec50a0367647740f38abcd6.tar.xz
spice-4236d1440b328223fec50a0367647740f38abcd6.zip
client/common: mingw32: workaround HAVE_STDLIB_H redefined in jconfig.h
Diffstat (limited to 'common')
-rw-r--r--common/gdi_canvas.c3
-rw-r--r--common/sw_canvas.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/common/gdi_canvas.c b/common/gdi_canvas.c
index f67aadf5..64fbbf5c 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 651c52bc..0f67c808 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