TuskenTower on 27 Jul 2006 15:17:32 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Linux Port


>
> I'm using gcc. Does anyone know of an existing macro for Suse or
> Solaris to do this with?  Or another good way of doing it?

There is __linux__ and __sun__ available, if you are using gcc of a
recentish version.

HTH,
--

The head of the nail has already been hit. I'm adding __apple__ with MOSX since it was mentioned.

I searched high and low for a list of predefined options, but the best
I could find was issuing "touch foo.h && cpp -dM foo.h" on your target
platform.  I found out this information after reading the man page fo
cpp for the umpteenth time.

HTH
Amul
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug