FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

My Plans for Derelict2
Goto page Previous  1, 2
 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Wed Jun 06, 2012 11:20 pm    Post subject: Reply with quote

Oh, and I don't understand the problem with c_long. It *will* be 64-bits on 64-bit Linux. That's the reason we should be using it in place of int/long. It's configured properly in stdc.config.

Code:


extern (C) version (Windows)
{
    alias int c_long;
    alias uint c_ulong;
}
else
{
    static if((void*).sizeof > (int).sizeof)
{
    alias long c_long;
    alias ulong c_ulong;
}
else
{
    alias int c_long;
    alias uint c_ulong;
}
}


So... is there something I'm missing?
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
ponce



Joined: 12 Nov 2009
Posts: 55

PostPosted: Thu Jun 07, 2012 2:01 am    Post subject: Reply with quote

Er... I didn't know about c_long from stdc.config, so I declared it (badly). Confused

The fix is to import stdc.config and remove the wrong c_long declaration.
_________________
@p0unce | gamesfrommars
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Thu Jun 07, 2012 6:37 am    Post subject: Reply with quote

Oh, I didn't catch that. All fixed!
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
ponce



Joined: 12 Nov 2009
Posts: 55

PostPosted: Thu Jun 07, 2012 2:13 pm    Post subject: Reply with quote

Great !
Would you need another binding?
_________________
@p0unce | gamesfrommars
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group