Andreas Vox wrote:
>> > Or do we already have a directory for this purpose?
>> 
>> src/cheaders ?
>> 
> Argh, when do these get used? The cheaders/cctype headerfile looks
> quite different to my /usr/include/gcc/darwin/3.3/c++/cctype !

Of course it looks different, you noodle! These files exist to overcome a
deficiency in some OS's header files. Why would this OS (older versions of
Tru64 Unix for DEC Alphas) have the same deficiencies as your OS?

So, specialise these header files for MacOS. Most will be

#if defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
#include <path to perfectly good system cheader>
#else

// insert existing contents of file here.

#endif

You'll put a little more magic into the cctype file of course. Something
like

#if defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)

#include <path to system cctype>
#ifdef _D
# undef _D
#endif
#ifdef _N
# undef _N
#endif

#else

// insert existing contents of file here.

#endif

-- 
Angus

Reply via email to