Is there a OS name defined by gcc or g++?

From: Dave (kaatzd_at_hotmail.com)
Date: 08/11/04


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