This is the mail archive of the libstdc++@gcc.gnu.org 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: libstdc++ breakage when overriding system headers



> But that still leaves the question of how to override the C library headers
> and still have the libstdc++ headers come before them.  I don't think the
> current cpp flags provide any way to do this.

the "C" compatibility headers will further mess with this. These are the 
(required) C++ headers that replace "C" headers with properly scoped (or 
improperly mangled, depending on your POV) versions. 

My current thought is to make a include/c_compatibility directory with:

%ls
./        ctype.h  limits.h  setjmp.h  stddef.h  string.h  wctype.h
../       errno.h  locale.h  signal.h  stdio.h   time.h
assert.h  float.h  math.h    stdarg.h  stdlib.h  wchar.h

where

% less ctype.h

#ifndef _CPP_CTYPE_H_
#define _CPP_CTYPE_H_ 1

#include <cctype>

using std::isalnum;
using std::isalpha;
[snip]


Although standard-conforming, this doesn't work especially well, and is 
thus not checked in.

Jonathan, will this make what you are trying to do even more difficult? 
Is there a way to do them both?

-benjamin


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