diff options
| author | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
|---|---|---|
| committer | Vibhav Pant | 2020-08-21 14:04:35 +0530 |
| commit | f0f8d7b82492e741950c363a03b886965c91b1b0 (patch) | |
| tree | 19b716830b1ebabc0d7d75949c4e6800c0f104ad /lib/c++defs.h | |
| parent | 9e64a087c4d167e7ec1c4e22bea3e6af53b563de (diff) | |
| parent | c818c29771d3cb51875643b2f6c894073e429dd2 (diff) | |
| download | emacs-feature/native-comp-macos-fixes.tar.gz emacs-feature/native-comp-macos-fixes.zip | |
Merge branch 'feature/native-comp' into feature/native-comp-macos-fixesfeature/native-comp-macos-fixes
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 |