From: Reuben Thomas <rrt@sc3d.org>
To: bug-gnulib <bug-gnulib@gnu.org>
Subject: Problem with DATADIR on Mingw
Date: Fri, 12 Apr 2024 17:59:20 +0200 [thread overview]
Message-ID: <CAOnWdojOnfMtDtCDpnG6LYqzU-sCO-GqXGLLfQDRCF649RbTcw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 793 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 3736 bytes --]
next reply other threads:[~2024-04-12 16:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-12 15:59 Reuben Thomas [this message]
2024-04-12 16:55 ` Problem with DATADIR on Mingw Bruno Haible
2024-04-12 18:27 ` Reuben Thomas
2024-04-12 19:20 ` Bruno Haible
2024-04-12 20:05 ` Reuben Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOnWdojOnfMtDtCDpnG6LYqzU-sCO-GqXGLLfQDRCF649RbTcw@mail.gmail.com \
--to=rrt@sc3d.org \
--cc=bug-gnulib@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).