From: Andrew E. <lit...@ya...> - 2002-01-31 23:59:15
|
Mark Hamzy <ha...@us...> wrote: > Ok. I have put the latest files in cvs. It does compile now with the > command: > make CFLAGS="-march=i386 -mcpu=i686 -Wall -DGCC_VER_3" Excellent. I have pulled the latest and am building. > Now, all I need is a way to determine which version of the compiler > that I am using instead of using an external define (GCC_VER_3). The preprocessor macro __GNUC__ contains the major version number of the compiler. __GNUC_MINOR__ contains the minor version number of the compiler, as you'd expect. So you can replace '#ifdef GCC_VER_3' with '#if defined(__GNUC__) && (__GNUC__ >= 3)', I think. -Andrew |