This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Predefined Macros


FX Coudert wrote:
Le 13 avr. 07 à 20:01, Brooks Moses a écrit :
Steve Kargl wrote:
#define __GFORTRAN__  20070411
or #define __GFORTRAN__ 1
#define __GFORTRAN_MAJOR__ 4
#define __GFORTRAN_MINOR__ 3
I think I prefer the latter; the relevant distinctions between the variants of 4.3 (especially the released versions) are likely to be less important than the distinctions between the various branches that would have the same compilation date.

So do I. __GFORTRAN__ is nice. But I think having MAJOR and MINOR version macros is redundant with __GNUC__, __GNUC_MINOR__ and __GNUC_PATCHLEVEL__. And redundant information is bad!

Right, of course. I entirely forgot that just because one might check for using GNU Fortran with a __GFORTRAN__ macro, that one could still use the existing GNUC macros to find the version. Yes, I certainly agree that there's no point in duplicating them!


- Brooks


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