Vincent Torri wrote:
> 
> 
> On Tue, 7 Apr 2009, Danny Backx wrote:
> 
>> On Tue, 2009-04-07 at 10:26 +0200, Marcel Smit wrote:
>>> I installed the mingw packages and it worked allmost out of the box...
>>
>> Great !
>>
>>> When compiling ACE, I ran into a compiler error regarding _wfdopen.
>>>
>>> In MSDN (http://msdn.microsoft.com/en-us/library/ms861280.aspx), the
>>> second parameter of the _wfdopen function is declared as
>>> "const wchar_t *" while in your header files (stdio.h and wchar.h), the
>>> second parameter is declared as "wchar_t *".
>>> Can you confirm this ?
>>
>> Not sure what there is to confirm.
>>
>> Yes the wfdopen function doesn't alter its arguments so it is valid to
>> define its parameter as "const". But I'm not sure what I'm breaking by
>> changing this.
>>
>> A grep in src/mingw/include gives this :
>> dannypc: {149} fgrep wfdopen *.h
>> stdio.h:_CRTIMP FILE* __cdecl   _wfdopen(int, wchar_t *);
>> stdio.h:_CRTIMP FILE* __cdecl __MINGW_NOTHROW   _wfdopen(int, const
>> wchar_t *);
>> tchar.h:#define _tfdopen    _wfdopen
>> wchar.h:_CRTIMP FILE* __cdecl __MINGW_NOTHROW   _wfdopen(int, const
>> wchar_t *);
>> dannypc: {150}
>>
>> If the consensus on this list is that I should change all these cases to
>> const wchar_t * then I will.
> 
> from
> 
> http://msdn.microsoft.com/en-us/library/dye30d82(VS.80).aspx
> 
> it's const, even in stdio.h
> 
> Vincent Torri

I agree to Vincent. In that light, I think it's better to make a small 
change to stdio.h...

Thanks again,

Marcel.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to