bug-gnulib
[Top][All Lists]
Advanced

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

Problem with DATADIR on Mingw


From: Reuben Thomas
Subject: Problem with DATADIR on Mingw
Date: Fri, 12 Apr 2024 17:59:20 +0200

With up-to-date gnulib (and I can't see any relevant changes for some years), I am getting the following error while using the configmake module and building on Mingw 64 x86_64:

In file included from <command-line>:
C:/msys64/mingw64/include/objidl.h:10677:3: error: expected identifier or '(' before string constant
10677 | } DATADIR;
| ^~~~~~~

This seems related to the following code at the top of configmake.h:

#if HAVE_WINSOCK2_H
# include <winsock2.h> /* avoid mingw pollution on DATADIR */
#endif

In my build, HAVE_WINSOCK2_H is not defined (or indeed undefined, I guess my configure doesn't test it either way). I see Makefile has "UNISTD_H_HAVE-WINSOCK2_H = 0", and ditto for "UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS", but that's the closest I can see.

--
https://rrt.sc3d.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]