Mercurial > hg > xemacs-beta
comparison src/config.h.in @ 3026:beef0f850624
[xemacs-hg @ 2005-10-25 11:19:56 by ben]
remove kludging of new and catch from config.h.in
config.h.in: Don't define new and catch under C++ any more.
(Places using new were just fixed by the last patch, places using
catch were fixed a couple of weeks ago.)
author | ben |
---|---|
date | Tue, 25 Oct 2005 11:19:58 +0000 |
parents | ec5f23ea6d2e |
children | 141c2920ea48 |
comparison
equal
deleted
inserted
replaced
3025:facf3239ba30 | 3026:beef0f850624 |
---|---|
1057 #define DECLARE_INLINE_HEADER(header) \ | 1057 #define DECLARE_INLINE_HEADER(header) \ |
1058 INLINE_HEADER header ; INLINE_HEADER header | 1058 INLINE_HEADER header ; INLINE_HEADER header |
1059 | 1059 |
1060 #ifndef NOT_C_CODE /* Actually means C or C++ */ | 1060 #ifndef NOT_C_CODE /* Actually means C or C++ */ |
1061 # if defined (__cplusplus) | 1061 # if defined (__cplusplus) |
1062 /* Avoid C++ keywords used as ordinary C identifiers */ | |
1063 # define new c_new | |
1064 # define catch c_catch | |
1065 | |
1066 # define EXTERN_C extern "C" | 1062 # define EXTERN_C extern "C" |
1067 # else /* C code */ | 1063 # else /* C code */ |
1068 # define EXTERN_C extern | 1064 # define EXTERN_C extern |
1069 # endif | 1065 # endif |
1070 #endif /* C or C++ */ | 1066 #endif /* C or C++ */ |