Didier Verna <didier(a)xemacs.org> writes:
| /* For use in #include statements.
| You can't use macros directly within the <> of a #include statement.
| The multiply nested macros are necessary to make old gcc's happy.
| However, those nested macros are too much for AIX xlc to deal with. */
| #if defined(_AIX) && !defined(__GNUC__)
| #define ATHENA_INCLUDE(header_file) <ATHENA_H_PATH/header_file>
| #else
...
* Each time a new inclusion macro needs to be written, you have to
redo the AIX test. I concede that this is not very satisfactory.
That kills it IMO. AIX /per se/ is of course not the issue. The
issue is that only God knows how many more compilers have exactly the
same problem. These #ifdef's scattered through code might only
increase.
Idea: maybe we should design a configure test to test which kind of
configure glue the user's preprocessor likes. Then our config.h.in
could say something like:
#define ATHENA_INCLUDE @INCLUDE_GLUE@(...)
Or something like that.