Kyle R . Burton on Thu, 20 Jun 2002 15:29:27 -0400


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

Re: [PLUG] OT: C question: anyone know what a SunOS box defines?


heh:

  [user@host dir]$ g++ -dumpspecs
  ...
  *predefines:
  -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -Asystem(unix) -Asystem(svr4)
  ...
  [user@host dir]$

I suppose I can combine some of those, or should I just use __svr4__?


Wait...under Linux that returns:

  -D__ELF__ -Dunix -Dlinux -Asystem(posix)

but:

  find /usr/include/ -type f | xargs grep -i __Linux__

gets me a bunch of:

  #ifdef __linux__

and I see some:

  __OpenBSD__
  __CYGWIN32__
  __LINUX__
  LINUX

damn.


kyle

-- 

------------------------------------------------------------------------------
Wisdom and Compassion are inseparable.
        -- Christmas Humphreys
mortis@voicenet.com                            http://www.voicenet.com/~mortis
------------------------------------------------------------------------------

______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug