From 6590f805a12779909cb8504c230fa367148fe38c Mon Sep 17 00:00:00 2001 From: marha Date: Sun, 12 Jul 2009 15:26:46 +0000 Subject: Changes for vc compilation. --- libxcb/src/xcb.h | 10 ++++++++++ libxcb/src/xcbxlib.h | 3 +++ 2 files changed, 13 insertions(+) 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 #endif +#ifndef _MSC_VER #include +#else +#define HANDLE void * +typedef int pid_t; +#endif #include +#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 #include "xcb.h" -- cgit v1.2.3