aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/xtrans/win32.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/xtrans/win32.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/xtrans/win32.patch')
-rw-r--r--vcpkg/ports/xtrans/win32.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/vcpkg/ports/xtrans/win32.patch b/vcpkg/ports/xtrans/win32.patch
new file mode 100644
index 0000000..dee4c79
--- /dev/null
+++ b/vcpkg/ports/xtrans/win32.patch
@@ -0,0 +1,58 @@
+diff --git a/Xtrans.h b/Xtrans.h
+index fbf385e01..e52e7cba2 100644
+--- a/Xtrans.h
++++ b/Xtrans.h
+@@ -50,6 +50,10 @@ from The Open Group.
+ #ifndef _XTRANS_H_
+ #define _XTRANS_H_
+
++#if defined(_WIN32) && !defined(WIN32)
++# define WIN32 _WIN32
++#endif
++
+ #include <X11/Xfuncproto.h>
+ #include <X11/Xos.h>
+ #include <X11/Xmd.h>
+diff --git a/Xtransint.h b/Xtransint.h
+index 2156bd52f..735b54301 100644
+--- a/Xtransint.h
++++ b/Xtransint.h
+@@ -72,7 +72,7 @@ from The Open Group.
+ # define XTRANSDEBUG 1
+ #endif
+
+-#ifdef WIN32
++#if defined(WIN32) || defined(_WIN32)
+ # define _WILLWINSOCK_
+ #endif
+
+diff --git a/Xtranssock.c b/Xtranssock.c
+index c29390eaa..f2ef365cc 100644
+--- a/Xtranssock.c
++++ b/Xtranssock.c
+@@ -74,6 +74,10 @@ from the copyright holders.
+ #include <X11/Xthreads.h>
+ #endif
+
++#if defined(_WIN32) && !defined(WIN32)
++# define WIN32 _WIN32
++#endif
++
+ #ifndef WIN32
+
+ #if defined(TCPCONN) || defined(UNIXCONN)
+diff --git a/Xtransutil.c b/Xtransutil.c
+index f15be243c..cc67315e6 100644
+--- a/Xtransutil.c
++++ b/Xtransutil.c
+@@ -54,6 +54,10 @@ from The Open Group.
+ * the internal implementation.
+ */
+
++#if defined(_WIN32) && !defined(WIN32)
++# define WIN32 _WIN32
++#endif
++
+ #ifdef XTHREADS
+ #include <X11/Xthreads.h>
+ #endif