fpcls on arm.

David Friedman dvdfrdmn at users.ess-eff.net
Tue Jul 15 21:08:38 PDT 2008


Vincent Richomme wrote:
> Another question is about errno because on Windows CEn it doesn't exist 
> so maybe it could be interesting to test if it's supported and in this 
> case to enable errno.x3.
> It also implies to check code for instance in stdlib.d there is the 
> following :
> 
> version (GNU)
> {
>     private import gcc.config.errno;
>     alias gcc.config.errno.ERANGE ERANGE;
> }
> else
>     enum int ERANGE = 34;    // on both Windows and linux
> 
> And I don't know why but when compiling for wince I fall into the 
> version GNU...
> 
> 
> 

Yes, it looks like I need to test for a working errno.h.  Disabling 
errno.x3 is not enough, however.  std.conv depends on ERANGE to perform 
overflow checking, but it looks like you cannot do that on WinCE(?)

"GNU" is always defined for gdc.  The else branch is there to preserve 
the original (DMD) code.

[snip]


More information about the D.gnu mailing list