summaryrefslogtreecommitdiff
path: root/dbus/dbus-sysdeps-wince-glue.h
diff options
context:
space:
mode:
authorRomain Pokrzywka <romain@kdab.com>2010-05-04 15:41:35 +0200
committerRalf Habacker <ralf.habacker@freenet.de>2010-05-05 07:57:28 +0200
commit3222b64d4a5e333ad3f95374a17fc4ecd6bc1431 (patch)
treedf5457f51da2c8f750720a9e9b3da6114f4211b8 /dbus/dbus-sysdeps-wince-glue.h
parent2c604f887efed7b7d16ed8b5cb50e50af8332564 (diff)
downloaddbus-3222b64d4a5e333ad3f95374a17fc4ecd6bc1431.tar.gz
fix {u}intptr_t usage on wince with msvc
Diffstat (limited to 'dbus/dbus-sysdeps-wince-glue.h')
-rw-r--r--dbus/dbus-sysdeps-wince-glue.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/dbus/dbus-sysdeps-wince-glue.h b/dbus/dbus-sysdeps-wince-glue.h
index 6d8e3b1e..3391be9e 100644
--- a/dbus/dbus-sysdeps-wince-glue.h
+++ b/dbus/dbus-sysdeps-wince-glue.h
@@ -29,7 +29,6 @@
#include <stdarg.h>
/* For getaddrinfo. */
-#define _WIN32_WCE 0x0401
#include <windows.h>
#undef interface
@@ -107,10 +106,19 @@ void abort (void);
#define _S_IREAD 0000400 /* read permission, owner */
#define _S_IWRITE 0000200 /* write permission, owner */
#define _S_IEXEC 0000100 /* execute/search permission, owner */
+
#ifndef __OFF_T_DEFINED
typedef long off_t;
#define __OFF_T_DEFINED
#endif
+#ifndef _INTPTR_T_DEFINED
+typedef int intptr_t;
+#define _INTPTR_T_DEFINED
+#endif
+#ifndef _UINTPTR_T_DEFINED
+typedef unsigned int uintptr_t;
+#define _UINTPTR_T_DEFINED
+#endif
#ifndef _MAX_FNAME
#define _MAX_FNAME 256