diff options
Diffstat (limited to 'lib/c++defs.h')
| -rw-r--r-- | lib/c++defs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/c++defs.h b/lib/c++defs.h index 90e6fd62e6d..6a9bf295eb5 100644 --- a/lib/c++defs.h +++ b/lib/c++defs.h | |||
| @@ -146,6 +146,16 @@ | |||
| 146 | _GL_EXTERN_C int _gl_cxxalias_dummy | 146 | _GL_EXTERN_C int _gl_cxxalias_dummy |
| 147 | #endif | 147 | #endif |
| 148 | 148 | ||
| 149 | /* _GL_CXXALIAS_MDA (func, rettype, parameters); | ||
| 150 | is to be used when func is a Microsoft deprecated alias, on native Windows. | ||
| 151 | It declares a C++ alias called GNULIB_NAMESPACE::func | ||
| 152 | that redirects to _func, if GNULIB_NAMESPACE is defined. | ||
| 153 | Example: | ||
| 154 | _GL_CXXALIAS_MDA (open, int, (const char *filename, int flags, ...)); | ||
| 155 | */ | ||
| 156 | #define _GL_CXXALIAS_MDA(func,rettype,parameters) \ | ||
| 157 | _GL_CXXALIAS_RPL_1 (func, _##func, rettype, parameters) | ||
| 158 | |||
| 149 | /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters); | 159 | /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters); |
| 150 | is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters); | 160 | is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters); |
| 151 | except that the C function rpl_func may have a slightly different | 161 | except that the C function rpl_func may have a slightly different |