diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-08-23 17:13:04 +0200 |
|---|---|---|
| committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2022-08-23 17:13:04 +0200 |
| commit | bbdcf5a704517d35a76ba8b666075da9ffe39ac4 (patch) | |
| tree | a36bec4f7c2802dfe5efc5cb2dfc902fec2a23b8 /gl/wchar.in.h | |
| parent | fa1ac7ecb247faf58fe65740c0d40e0585f684c9 (diff) | |
| download | monitoring-plugins-bbdcf5a.tar.gz | |
Sync with the latest Gnulib code (fa1ac7ec)
Diffstat (limited to 'gl/wchar.in.h')
| -rw-r--r-- | gl/wchar.in.h | 38 |
1 files changed, 34 insertions, 4 deletions
diff --git a/gl/wchar.in.h b/gl/wchar.in.h index 20315dd7..835ddbe6 100644 --- a/gl/wchar.in.h +++ b/gl/wchar.in.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* A substitute for ISO C99 <wchar.h>, for platforms that have issues. | 1 | /* A substitute for ISO C99 <wchar.h>, for platforms that have issues. |
| 2 | 2 | ||
| 3 | Copyright (C) 2007-2021 Free Software Foundation, Inc. | 3 | Copyright (C) 2007-2022 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is free software: you can redistribute it and/or modify | 5 | This file is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU Lesser General Public License as | 6 | it under the terms of the GNU Lesser General Public License as |
| @@ -175,13 +175,43 @@ typedef int rpl_mbstate_t; | |||
| 175 | # endif | 175 | # endif |
| 176 | #endif | 176 | #endif |
| 177 | 177 | ||
| 178 | /* Declare 'free' if needed for _GL_ATTRIBUTE_DEALLOC_FREE. */ | 178 | /* Make _GL_ATTRIBUTE_DEALLOC_FREE work, even though <stdlib.h> may not have |
| 179 | _GL_EXTERN_C void free (void *); | 179 | been included yet. */ |
| 180 | #if @GNULIB_FREE_POSIX@ | 180 | #if @GNULIB_FREE_POSIX@ |
| 181 | # if (@REPLACE_FREE@ && !defined free \ | 181 | # if (@REPLACE_FREE@ && !defined free \ |
| 182 | && !(defined __cplusplus && defined GNULIB_NAMESPACE)) | 182 | && !(defined __cplusplus && defined GNULIB_NAMESPACE)) |
| 183 | # define free rpl_free | 183 | /* We can't do '#define free rpl_free' here. */ |
| 184 | _GL_EXTERN_C void rpl_free (void *); | ||
| 185 | # undef _GL_ATTRIBUTE_DEALLOC_FREE | ||
| 186 | # define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (rpl_free, 1) | ||
| 187 | # else | ||
| 188 | # if defined _MSC_VER && !defined free | ||
| 189 | _GL_EXTERN_C | ||
| 190 | # if defined _DLL | ||
| 191 | __declspec (dllimport) | ||
| 192 | # endif | ||
| 193 | void __cdecl free (void *); | ||
| 194 | # else | ||
| 195 | # if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) | ||
| 196 | _GL_EXTERN_C void free (void *) throw (); | ||
| 197 | # else | ||
| 198 | _GL_EXTERN_C void free (void *); | ||
| 199 | # endif | ||
| 200 | # endif | ||
| 201 | # endif | ||
| 202 | #else | ||
| 203 | # if defined _MSC_VER && !defined free | ||
| 204 | _GL_EXTERN_C | ||
| 205 | # if defined _DLL | ||
| 206 | __declspec (dllimport) | ||
| 207 | # endif | ||
| 208 | void __cdecl free (void *); | ||
| 209 | # else | ||
| 210 | # if defined __cplusplus && (__GLIBC__ + (__GLIBC_MINOR__ >= 14) > 2) | ||
| 211 | _GL_EXTERN_C void free (void *) throw (); | ||
| 212 | # else | ||
| 184 | _GL_EXTERN_C void free (void *); | 213 | _GL_EXTERN_C void free (void *); |
| 214 | # endif | ||
| 185 | # endif | 215 | # endif |
| 186 | #endif | 216 | #endif |
| 187 | 217 | ||
