summaryrefslogtreecommitdiffstats
path: root/client/common.h
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-01-27 12:12:41 +0200
committerAlon Levy <alevy@redhat.com>2011-01-27 17:19:06 +0200
commit645236df2bc908de7abcd6b3d8aab0467ee2d401 (patch)
tree1f82041f2f1881e7a746e2228fd0e05e29b7e904 /client/common.h
parent9394b2c50e8b5d7b336c6603166709ed0637bb81 (diff)
downloadspice-645236df2bc908de7abcd6b3d8aab0467ee2d401.tar.gz
spice-645236df2bc908de7abcd6b3d8aab0467ee2d401.tar.xz
spice-645236df2bc908de7abcd6b3d8aab0467ee2d401.zip
client: fix broken vs2008 build
Diffstat (limited to 'client/common.h')
-rw-r--r--client/common.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/client/common.h b/client/common.h
index bda7a191..80911d27 100644
--- a/client/common.h
+++ b/client/common.h
@@ -26,7 +26,11 @@
#include <errno.h>
#endif
-#include <spice/types.h>
+#define __STDC_FORMAT_MACROS
+#ifndef _WIN32
+#include <inttypes.h>
+#endif
+
#include <stdio.h>
#include <string>
#include <vector>
@@ -74,6 +78,11 @@
#define RED64
#endif
+#if defined(_WIN32) && !defined(PRIu64)
+#define PRIu64 "I64u"
+#endif
+
+#include <spice/types.h>
#include "red_types.h"
#endif