bug-gnulib
[Top][All Lists]
Advanced

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

Re: MinGW compilation errors with Gnulib wchar.h and wctype.h


From: Paul Eggert
Subject: Re: MinGW compilation errors with Gnulib wchar.h and wctype.h
Date: Sun, 9 Oct 2016 10:10:38 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0

Eli Zaretskii wrote:
I'm not sure what would be the best way of avoiding these errors

The usual method is to alter the gnulib .h file so that it merely include_next's the system .h file when it detects that its partial inclusion is desired. Something like this:

#ifdef __need_FILE
# @INCLUDE_NEXT@ @NEXT_STDIO_H@
#elif !defined _GL_STDIO_H
# @INCLUDE_NEXT@ @NEXT_STDIO_H@
# define _GL_STDIO_H
  /* our own fixups */
#endif

It often gets more complicated than this (see lib/stdio.in.h), but that's the basic idea.

It would be nicer if MinGW didn't have the problem in question. They could do that by altering their include-file practices.



reply via email to

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