summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7903d76)
raw | patch | inline | side by side (parent: 7903d76)
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Sun, 18 Jan 2009 14:42:04 +0000 (09:42 -0500) | ||
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | |
Sun, 18 Jan 2009 14:42:04 +0000 (09:42 -0500) |
See: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/16341
gl/wchar.in.h | patch | blob | history |
diff --git a/gl/wchar.in.h b/gl/wchar.in.h
index e069cfaa01d63464805feef36a86efd7683f3462..cc436b14b0386eda6a4d9efd8e34e905201132e8 100644 (file)
--- a/gl/wchar.in.h
+++ b/gl/wchar.in.h
@PRAGMA_SYSTEM_HEADER@
#endif
-#if defined __need_mbstate_t || (defined __hpux && ((defined _INTTYPES_INCLUDED && !defined strtoimax) || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H))
+#if defined __need_mbstate_t || (defined __hpux && ((defined _INTTYPES_INCLUDED && !defined strtoimax) || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) || defined _GL_ALREADY_INCLUDING_WCHAR_H
/* Special invocation convention:
- Inside uClibc header files.
- On HP-UX 11.00 we have a sequence of nested includes
once indirectly <stdint.h> -> <sys/types.h> -> <inttypes.h> -> <wchar.h>
and once directly. In both situations 'wint_t' is not yet defined,
therefore we cannot provide the function overrides; instead include only
- the system's <wchar.h>. */
+ the system's <wchar.h>.
+ - On IRIX 6.5, similarly, we have an include <wchar.h> -> <wctype.h>, and
+ the latter includes <wchar.h>. But here, we have no way to detect whether
+ <wctype.h> is completely included or is still being included. */
#@INCLUDE_NEXT@ @NEXT_WCHAR_H@
#ifndef _GL_WCHAR_H
+#define _GL_ALREADY_INCLUDING_WCHAR_H
+
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>.
BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
# @INCLUDE_NEXT@ @NEXT_WCHAR_H@
#endif
+#undef _GL_ALREADY_INCLUDING_WCHAR_H
+
#ifndef _GL_WCHAR_H
#define _GL_WCHAR_H