Re: [RFC 1/4] configmake: Check for WIN32 correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Thursday in 2024, Andrea Bolognani wrote:
The macro is only defined on Windows, so we shouldn't check its
value but rather whether it's defined at all.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
configmake.h.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configmake.h.in b/configmake.h.in
index c9930b6049..6b309472e5 100644
--- a/configmake.h.in
+++ b/configmake.h.in
@@ -1,5 +1,5 @@
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */

This comment was obsolete back when it was added.

-#if WIN32
+#ifdef WIN32
# include <winsock2.h> /* avoid mingw pollution on DATADIR */
#endif
#mesondefine BINDIR

Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux