This is the mail archive of the libstdc++@sourceware.cygnus.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]

c++config.h pollutes the user's namespace


Hi

bits/c++config.h pollutes the user's namespace by defining macros such
as HAVE_POWF, PACKAGE and VERSION.  Thus the following code does not
compile:

#include <vector>
class X {
   int HAVE_POWF;
   int VERSION;
};

Names such as _HAVE_POWF, HAVE__POWF, _PACKAGE would be acceptable
alternatives.  I am not conversant with autoconf, autoheader, etc. so
I don't know how to go about fixing this. The version of libstdc++
that comes with gcc does not have this problem.

Philip

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