aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-10-01 14:04:45 +0200
committermarha <marha@users.sourceforge.net>2013-10-01 14:04:45 +0200
commit6a9745b567d0500601b5977022b0fc5e1488f5a1 (patch)
tree0b1b60872ea994870f4e61c2e9affe56a6c6d133
parentbe0d35a4a1b1dc5bde14d1b027f4f0cb58b5a779 (diff)
downloadvcxsrv-6a9745b567d0500601b5977022b0fc5e1488f5a1.tar.gz
vcxsrv-6a9745b567d0500601b5977022b0fc5e1488f5a1.tar.bz2
vcxsrv-6a9745b567d0500601b5977022b0fc5e1488f5a1.zip
Solved error due to latest merge
-rwxr-xr-xapps/xhost/xhost.c4
-rwxr-xr-xlibXaw/src/Vendor.c3
-rw-r--r--libXrender/src/Xrenderint.h4
3 files changed, 9 insertions, 2 deletions
diff --git a/apps/xhost/xhost.c b/apps/xhost/xhost.c
index a6baa9dbf..44d85a09e 100755
--- a/apps/xhost/xhost.c
+++ b/apps/xhost/xhost.c
@@ -92,6 +92,10 @@ X Window System is a trademark of The Open Group.
#include <arpa/inet.h>
#endif
+#ifdef _MSC_VER
+#define _X_UNUSED
+#endif
+
#ifdef SECURE_RPC
#include <pwd.h>
diff --git a/libXaw/src/Vendor.c b/libXaw/src/Vendor.c
index 0ce5b6def..a2554daff 100755
--- a/libXaw/src/Vendor.c
+++ b/libXaw/src/Vendor.c
@@ -111,13 +111,12 @@ static XtResource resources[] = {
*
***************************************************************************/
-#if defined(__CYGWIN__) || defined(__MINGW32__)
+#if defined(__CYGWIN__) || defined(__MINGW32__) && !defined(_MSC_VER)
/* to fix the EditRes problem because of wrong linker semantics */
extern WidgetClass vendorShellWidgetClass; /* from Xt/Vendor.c */
extern VendorShellClassRec _XawVendorShellClassRec;
extern void _XawFixupVendorShell();
-#if defined(__CYGWIN__) || defined(__MINGW32__) && !defined(_MSC_VER)
int __stdcall
DllMain(unsigned long mod_handle, unsigned long flag, void *routine)
{
diff --git a/libXrender/src/Xrenderint.h b/libXrender/src/Xrenderint.h
index daaa6fe10..aca5d4f8d 100644
--- a/libXrender/src/Xrenderint.h
+++ b/libXrender/src/Xrenderint.h
@@ -113,6 +113,10 @@ XRenderFindDisplay (Display *dpy);
#include <X11/Xmd.h> /* for LONG64 on 64-bit platforms */
#include <limits.h>
+#ifdef _MSC_VER
+#define inline __inline
+#endif
+
static inline void _XEatDataWords(Display *dpy, unsigned long n)
{
# ifndef LONG64