[Git][slirp/libslirp][master] ensure that WINVER and _WIN32_WINNT are unconditionally set
Samuel Thibault (@sthibaul)
gitlab at gitlab.freedesktop.org
Thu Jan 30 01:10:58 UTC 2025
Samuel Thibault pushed to branch master at slirp / libslirp
Commits:
58e74945 by B. Scott Michel at 2025-01-30T02:00:10+01:00
ensure that WINVER and _WIN32_WINNT are unconditionally set
if TARGET_WINVER is defined.
- - - - -
1 changed file:
- src/slirp.h
Changes:
=====================================
src/slirp.h
=====================================
@@ -3,12 +3,22 @@
#define SLIRP_H
#ifdef _WIN32
+
+#if defined(TARGET_WINVER)
/* TARGET_WINVER defined on the compiler command line? */
-#if defined(TARGET_WINVER) && !defined(WINVER)
+
+# undef WINVER
+# undef _WIN32_WINNT
# define WINVER TARGET_WINVER
-/* Default WINVER to Windows 7 API, same as glib. */
+# define _WIN32_WINNT TARGET_WINVER
+
#elif !defined(WINVER)
+/* Default WINVER to Windows 7 API, same as glib. */
+# undef _WIN32_WINNT
+
# define WINVER 0x0601
+# define _WIN32_WINNT WINVER
+
#endif
/* Ensure that _WIN32_WINNT matches WINVER */
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/58e749454d1fb0ab3eb3864e5d71fca552e4ed2b
--
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/58e749454d1fb0ab3eb3864e5d71fca552e4ed2b
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20250130/89ab67a8/attachment-0001.htm>
More information about the Slirp
mailing list