diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2015-06-20 09:57:08 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-06-20 09:57:42 -0700 |
commit | e1085f202f0937aa2875d3135d1babdf07812706 (patch) | |
tree | 7e438f6ead66b4aeee4b078848019081b1a38f7b /lib/wchar.in.h | |
parent | 447c67539b864bd2e7b0b79ee9ec22c4a59a9de0 (diff) | |
download | gnulib-e1085f202f0937aa2875d3135d1babdf07812706.tar.gz |
wchar: fix MinGW compilation warnings
This lets Texinfo compile cleanly. See Eli Zaretskii in:
http://lists.gnu.org/archive/html/bug-gnulib/2015-06/msg00050.html
* lib/wchar.in.h: Do not use special invocation convention on MinGW.
Diffstat (limited to 'lib/wchar.in.h')
-rw-r--r-- | lib/wchar.in.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/wchar.in.h b/lib/wchar.in.h index b760822cbe..70305d5a52 100644 --- a/lib/wchar.in.h +++ b/lib/wchar.in.h @@ -30,9 +30,14 @@ #endif @PRAGMA_COLUMNS@ -#if defined __need_mbstate_t || defined __need_wint_t || (defined __hpux && ((defined _INTTYPES_INCLUDED && !defined strtoimax) || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) || defined _GL_ALREADY_INCLUDING_WCHAR_H +#if (((defined __need_mbstate_t || defined __need_wint_t) \ + && !defined __MINGW32__) \ + || (defined __hpux \ + && ((defined _INTTYPES_INCLUDED && !defined strtoimax) \ + || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) \ + || defined _GL_ALREADY_INCLUDING_WCHAR_H) /* Special invocation convention: - - Inside glibc and uClibc header files. + - Inside glibc and uClibc header files, but not MinGW. - On HP-UX 11.00 we have a sequence of nested includes <wchar.h> -> <stdlib.h> -> <stdint.h>, and the latter includes <wchar.h>, once indirectly <stdint.h> -> <sys/types.h> -> <inttypes.h> -> <wchar.h> |