|
From: Damian R. S. <da...@pr...> - 2003-04-04 04:42:26
|
Hello,
I´m trying to make a program that can be compiled
by any of the following gcc compilers:
-- Mingw (Windows)
-- DJGPP (DOS)
-- Linux gcc (RedHat)
To differentiate the treatment at certain points
of the code I try to test for the following macros:
#ifdef DJGPP... for DJGPP (seems to work)
#ifdef _WIN32... for Mingw (is this safe or is there
a better one?)
#ifdef ??? for Linux gcc (what can I use?)
And finally, to verify whether my compiler is
gcc at all I tried to use __GNU__ but it didn't work
under Linux, then I tried __GLIBC__ but it didn't work
under Mingw.... Is there a macro that I can use
and be absolutely sure that my compiler is a gcc?
Thank you.
|