On Mon, 6 Oct 2008, Pedro Alves wrote:

> On Monday 06 October 2008 07:03:01, Vincent Torri wrote:
>>
>> I wanted to use _mktemp, _locking, _get_osfhandle and SetHandleInformation
>> with mingw32ce
>>
>> they are all declared:
>>
>> _mktemp, _locking and _get_osfhandle are in io.h
>> SetHandleInformation is in winbase.h
>>
>> but they are not defined.
>>
>> About the 3 CRT functions, msdn does not mention them:
>>
>> http://msdn.microsoft.com/en-us/library/ms859613.aspx
>>
>> (it's for win ce 5.0, i didn't find the doc for crt and other version of
>> win ce, that msdn site is an absolute horror)
>>
>> I also didn't find SetHandleInformation for win ce in msdn with its search
>> engine or google. But it does not imply that it does not exist for win ce.
>
> So, what are you really asking here?
>
> If we got rid of the declarations, you still couldn't use the
> functions?
>
> I sure can point at many functions we have declared but that are not
> defined.  I find it convenient at times, to just provide an
> implementation in my projects/ports, without having to provide
> the declarations in a special CE header.
>
> (I sure understand that it can be problematic in cases where autoconf
> is used to check for the declaration but not definition...)

As mingw32ce is for developpping native applications (according to the 
website), i think that it is not good to provide function declarations 
that are not used, and more, it is useless and can lead to compilation 
errors (like I had). It took me a long time to understand why. A long time 
because i had to see if the problems come from unsupported functions with 
win ce or bug in mingw32ce.

Do what you want with cegcc, but i don't think it's a good idea to keep 
them in mingw32ce.

Vincent Torri

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to