diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-06 09:24:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-06 09:24:23 +0100 |
| commit | 9b4df9e50837cc837e113053ba12ee6967d5e6c2 (patch) | |
| tree | bf989e771579f835bcb49c074637a8e224bcecbc /gl/c++defs.h | |
| parent | 94150ae347beb25ac369d5773834ceef7f3736d3 (diff) | |
| parent | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (diff) | |
| download | monitoring-plugins-9b4df9e50837cc837e113053ba12ee6967d5e6c2.tar.gz | |
Merge pull request #2037 from RincewindsHat/update/gnulib-1.0
Sync with the latest Gnulib code (d4ec02b3cc) (gnulib v1.0)
Diffstat (limited to 'gl/c++defs.h')
| -rw-r--r-- | gl/c++defs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gl/c++defs.h b/gl/c++defs.h index 8ad46951..eb66967b 100644 --- a/gl/c++defs.h +++ b/gl/c++defs.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* C++ compatible function declaration macros. | 1 | /* C++ compatible function declaration macros. |
| 2 | Copyright (C) 2010-2023 Free Software Foundation, Inc. | 2 | Copyright (C) 2010-2024 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This program is free software: you can redistribute it and/or modify it | 4 | This program is free software: you can redistribute it and/or modify it |
| 5 | under the terms of the GNU Lesser General Public License as published | 5 | under the terms of the GNU Lesser General Public License as published |
| @@ -99,6 +99,12 @@ | |||
| 99 | Example: | 99 | Example: |
| 100 | _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) | 100 | _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) |
| 101 | _GL_ARG_NONNULL ((1))); | 101 | _GL_ARG_NONNULL ((1))); |
| 102 | |||
| 103 | Note: Attributes, such as _GL_ATTRIBUTE_DEPRECATED, are supported in front | ||
| 104 | of a _GL_FUNCDECL_RPL invocation only in C mode, not in C++ mode. (That's | ||
| 105 | because | ||
| 106 | [[...]] extern "C" <declaration>; | ||
| 107 | is invalid syntax in C++.) | ||
| 102 | */ | 108 | */ |
| 103 | #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ | 109 | #define _GL_FUNCDECL_RPL(func,rettype,parameters_and_attributes) \ |
| 104 | _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) | 110 | _GL_FUNCDECL_RPL_1 (rpl_##func, rettype, parameters_and_attributes) |
