Bruno Haible <[EMAIL PROTECTED]> writes: >> +#if HAVE_WCHAR_H >> /* Include the original <wchar.h>. */ >> /* The include_next requires a split double-inclusion guard. */ >> #if @HAVE_INCLUDE_NEXT@ >> @@ -42,6 +43,7 @@ >> #else >> # include @ABSOLUTE_WCHAR_H@ >> #endif >> +#endif >> >> #ifndef _GL_WCHAR_H >> #define _GL_WCHAR_H > > There is a little more than this, because - as you know - we want the > replacement *.h files to be independent of <config.h> as far as possible.
Duh, of course. Thanks. >> Alternatively, stdint_.h could avoid including wchar.h, but this fix >> seems cleaner because printf can always assume wchar.h, and the wchar >> module is responsible for making it appear as if the wchar.h intefaces >> works. > > Yes, this is the purpose of the modules: that you don't need to change much > when we notice yet another portability problem. The 'wchar' module is a > dependency of the 'stdint' module, therefore lib/stdint_.h does not need to > be changed - it can assume a working <wchar.h> file. Exactly. Thanks, Simon
