bug-gnulib
[Top][All Lists]
Advanced

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

Re: printf, wchar


From: Simon Josefsson
Subject: Re: printf, wchar
Date: Thu, 07 Jun 2007 16:21:51 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.95 (gnu/linux)

Bruno Haible <address@hidden> 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




reply via email to

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