April 30, 2004
Hi

I just installed gdc on my OS X machine. I used the instructions from
http://home.earthlink.net/
~dvdfrdmn/d/. No problems occured and everything works fine :). I even compiled
some simple
programs.

My question is, is there a special version for the OS X compiler like the build
in versions linux, Win32,
etc? I'm trying to compile the socket.d file but none of the version( ... )
statements is being recognized.
So what version do i use to write OS X specific code so i can try to get
socket.d to work on OS X.

Joris


April 30, 2004
joris@mac.com wrote:
> Hi
> 
> I just installed gdc on my OS X machine. I used the instructions from
> http://home.earthlink.net/
> ~dvdfrdmn/d/. No problems occured and everything works fine :). I even compiled
> some simple programs. 
> 
> My question is, is there a special version for the OS X compiler like the build
> in versions linux, Win32, etc? I'm trying to compile the socket.d file but none of the version( ... )
> statements is being recognized. So what version do i use to write OS X specific code so i can try to get
> socket.d to work on OS X.
> 
> Joris
> 
> 

For gdc, all unix-like systems will define "Unix".  In addition, the OS part of the canonical system type (determined by the configure script) without the version number is defined.

So for MacOS X ("powerpc-apple-darwin7.2.0"), the version symbol will be "darwin".

This convention and the meaning of "unix-like system" is not fixed in stone, but I think the current system will work out.

David