This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Determining libstdc++ version at compile time
- To: Craig Rodrigues <rodrigc at mediaone dot net>
- Subject: Re: Determining libstdc++ version at compile time
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Tue, 20 Mar 2001 09:09:08 -0800 (PST)
- cc: libstdc++ at gcc dot gnu dot org
> I just looked for that macro and saw that it exists
> on libstdc++-v3 but not on libstdc++-v2. Is this correct?
yes
> #if (defined (__GLIBCPP__) && __GLIBCPP__ >= 20010301 )
> v3 code here
> #else
> v2 code here
> #endif
#if __GLIBCPP__
//v3
#else
//v2
#endif