summaryrefslogtreecommitdiffstats
path: root/client/windows/platform_utils.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-07-08 11:40:57 +0200
committerAlon Levy <alevy@redhat.com>2010-12-08 17:11:45 +0200
commitf6cacd0e51d345e1ee8b82e420c59dfaaf95300a (patch)
tree1529fa71ed90955fcbfaa5b8e47c8b77dbdfc008 /client/windows/platform_utils.h
parent53c808947d4d5b480d8880f69b53d4e6bac056fa (diff)
downloadspice-f6cacd0e51d345e1ee8b82e420c59dfaaf95300a.tar.gz
spice-f6cacd0e51d345e1ee8b82e420c59dfaaf95300a.tar.xz
spice-f6cacd0e51d345e1ee8b82e420c59dfaaf95300a.zip
mingw32 build: fix build errors
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'client/windows/platform_utils.h')
-rw-r--r--client/windows/platform_utils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/windows/platform_utils.h b/client/windows/platform_utils.h
index 49f9d39d..2f333f70 100644
--- a/client/windows/platform_utils.h
+++ b/client/windows/platform_utils.h
@@ -21,10 +21,11 @@
#include <winsock.h>
#include <winsock2.h>
#include <ws2tcpip.h>
+#include "utils.h"
#define mb() __asm {lock add [esp], 0}
-template<class T, class FreeRes = FreeObject<T>, T invalid = NULL >
+template<class T, class FreeRes = FreeObject<T>, intptr_t invalid = 0 >
class AutoRes {
public:
AutoRes() : res(invalid) {}