diff options
Diffstat (limited to 'client/common.h')
-rw-r--r-- | client/common.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/client/common.h b/client/common.h index e1c149c6..522f22be 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> @@ -62,6 +66,11 @@ #define RED64 #endif +#if defined(_WIN32) && !defined(PRIu64) +#define PRIu64 "I64u" +#endif + +#include <spice/types.h> #include "red_types.h" #endif |