This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: UN*X defines (WAS: RE: CygUtils Version of zip (and Symlinks))


--- "s.rekow" <s.rekow@sh-home.de> wrote:
> > > Well actually, I've wondered about adding unix and linux and 'similar
> > > "standard" defines' myself.  What would you consider "standard"?
> 
> http://www.whatis.com/posix.htm ? ;)
> 
> take a look how i.e. tcl
> (http://dev.scriptics.com/software/tcltk/platforms.html) does it?
> 

Good pieces of information, however, I don't see a list of predefined macros
that identify a "UNIX" system as would be attainable by doing

touch empty.c
gcc -c empty.c -E -dM 

on a unix system.

Hmm...  I just tried this on HPUX with a self built gcc and I get unix, __unix
and __unix__.  Now this is what I was after.  Those who have linux running, is
there anything else of interest?

Cheers,

=====
---
   Earnie Boyd: <mailto:earnie_boyd@yahoo.com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://www.freeyellow.com/members5/gw32/index.html>
           __Minimalist GNU for Windows__
  Mingw32 List: <http://www.egroups.com/group/mingw32/>
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]