View previous topic :: View next topic |
Author |
Message |
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Wed Jun 06, 2012 11:20 pm Post subject: |
|
|
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 |
|
|
ponce
Joined: 12 Nov 2009 Posts: 55
|
Posted: Thu Jun 07, 2012 2:01 am Post subject: |
|
|
Er... I didn't know about c_long from stdc.config, so I declared it (badly).
The fix is to import stdc.config and remove the wrong c_long declaration. _________________ @p0unce | gamesfrommars |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
|
Back to top |
|
|
ponce
Joined: 12 Nov 2009 Posts: 55
|
Posted: Thu Jun 07, 2012 2:13 pm Post subject: |
|
|
Great !
Would you need another binding? _________________ @p0unce | gamesfrommars |
|
Back to top |
|
|
|