aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-07-12 15:26:46 +0000
committermarha <marha@users.sourceforge.net>2009-07-12 15:26:46 +0000
commit6590f805a12779909cb8504c230fa367148fe38c (patch)
treed8320676379973b30f7d695bc0058e87c17d715d
parent89b53f3f83c87bbcb2ffb8c5d37ae8df196aaee4 (diff)
downloadvcxsrv-6590f805a12779909cb8504c230fa367148fe38c.tar.gz
vcxsrv-6590f805a12779909cb8504c230fa367148fe38c.tar.bz2
vcxsrv-6590f805a12779909cb8504c230fa367148fe38c.zip
Changes for vc compilation.
-rw-r--r--libxcb/src/xcb.h10
-rw-r--r--libxcb/src/xcbxlib.h3
2 files changed, 13 insertions, 0 deletions
diff --git a/libxcb/src/xcb.h b/libxcb/src/xcb.h
index 5a1c01ab1..323a31fb2 100644
--- a/libxcb/src/xcb.h
+++ b/libxcb/src/xcb.h
@@ -35,9 +35,19 @@
#include <stdint.h>
#endif
+#ifndef _MSC_VER
#include <sys/uio.h>
+#else
+#define HANDLE void *
+typedef int pid_t;
+#endif
#include <pthread.h>
+#ifdef _MSC_VER
+#undef HANDLE
+typedef unsigned uint32_t;
+typedef int int32_t;
+#endif
#ifdef __cplusplus
extern "C" {
diff --git a/libxcb/src/xcbxlib.h b/libxcb/src/xcbxlib.h
index 4cb5cd4bf..53821afce 100644
--- a/libxcb/src/xcbxlib.h
+++ b/libxcb/src/xcbxlib.h
@@ -31,6 +31,9 @@
#ifndef __XCBXLIB_H
#define __XCBXLIB_H
+#ifdef _MSC_VER
+typedef int pid_t;
+#endif
#include <pthread.h>
#include "xcb.h"