Is there a OS name defined by gcc or g++?
From: Dave (kaatzd_at_hotmail.com)
Date: 08/11/04
- Next message: Chris McDonald: "Re: Is there a OS name defined by gcc or g++?"
- Previous message: Måns Rullgård: "Re: enhancing LIST"
- Next in thread: Chris McDonald: "Re: Is there a OS name defined by gcc or g++?"
- Reply: Chris McDonald: "Re: Is there a OS name defined by gcc or g++?"
- Reply: Norm Dresner: "Re: Is there a OS name defined by gcc or g++?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 10 Aug 2004 16:15:03 -0700
I'm looking something like a compiler under Win32 will define _WIN32
for me, so then I can have my conditional code thus:
#ifdef _WIN32
...
#elif defined __OS2__
...
#elif defined LINUX
...
#endif
Thanks in advance,
Dave
- Next message: Chris McDonald: "Re: Is there a OS name defined by gcc or g++?"
- Previous message: Måns Rullgård: "Re: enhancing LIST"
- Next in thread: Chris McDonald: "Re: Is there a OS name defined by gcc or g++?"
- Reply: Chris McDonald: "Re: Is there a OS name defined by gcc or g++?"
- Reply: Norm Dresner: "Re: Is there a OS name defined by gcc or g++?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|