This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


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

Re: is there a version define ?



> see bits/c++config.h:
> 
> #define __GLIBCPP__ 20000324
> 
> > is there any define (somewhere around the config headers) from which I can
> > recognize that I currently compile with gcc's stdc++ standard header files?
> > this would be useful to preparate stdc++ specific bug (like abs(int)) until
> > it'll solved.

Also in that same file:

  #define _GLIBCPP_VERSION "2.90.8"

which looks prettier but is generally less useful, since it cannot be
computed from the date.

If you're planning to test for specific bugs, keep in mind that neither
of these will change until the next snapshot.  Even when the bug is fixed
in CVS, a test against only these #define's will still indicate that the
bug is still present.


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.

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