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/limits.in.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/limits.in.h')
| -rw-r--r-- | gl/limits.in.h | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/gl/limits.in.h b/gl/limits.in.h index eaeac472..c65eb4c1 100644 --- a/gl/limits.in.h +++ b/gl/limits.in.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* A GNU-like <limits.h>. | 1 | /* A GNU-like <limits.h>. |
| 2 | 2 | ||
| 3 | Copyright 2016-2023 Free Software Foundation, Inc. | 3 | Copyright 2016-2024 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 |
| @@ -99,6 +99,11 @@ | |||
| 99 | # endif | 99 | # endif |
| 100 | #endif | 100 | #endif |
| 101 | 101 | ||
| 102 | /* Assume no multibyte character is longer than 16 bytes. */ | ||
| 103 | #ifndef MB_LEN_MAX | ||
| 104 | # define MB_LEN_MAX 16 | ||
| 105 | #endif | ||
| 106 | |||
| 102 | /* Macros specified by C23 and by ISO/IEC TS 18661-1:2014. */ | 107 | /* Macros specified by C23 and by ISO/IEC TS 18661-1:2014. */ |
| 103 | 108 | ||
| 104 | #if (! defined ULLONG_WIDTH \ | 109 | #if (! defined ULLONG_WIDTH \ |
| @@ -119,11 +124,26 @@ | |||
| 119 | 124 | ||
| 120 | /* Macros specified by C23. */ | 125 | /* Macros specified by C23. */ |
| 121 | 126 | ||
| 122 | #if (! defined BOOL_WIDTH \ | 127 | #if (defined _GNU_SOURCE \ |
| 123 | && (defined _GNU_SOURCE \ | 128 | || (defined __STDC_VERSION__ && 201710 < __STDC_VERSION__)) |
| 124 | || (defined __STDC_VERSION__ && 201710 < __STDC_VERSION__))) | 129 | # if ! defined BOOL_WIDTH |
| 125 | # define BOOL_MAX 1 | 130 | # define BOOL_WIDTH 1 |
| 126 | # define BOOL_WIDTH 1 | 131 | # define BOOL_MAX 1 |
| 132 | # elif ! defined BOOL_MAX | ||
| 133 | # define BOOL_MAX 1 | ||
| 134 | # endif | ||
| 135 | #endif | ||
| 136 | |||
| 137 | /* Macro specified by POSIX. */ | ||
| 138 | |||
| 139 | /* The maximum ssize_t value. Although it might not be of ssize_t type | ||
| 140 | as it should be, it's too much trouble to fix this minor detail. */ | ||
| 141 | #ifndef SSIZE_MAX | ||
| 142 | # ifdef _WIN64 | ||
| 143 | # define SSIZE_MAX LLONG_MAX | ||
| 144 | # else | ||
| 145 | # define SSIZE_MAX LONG_MAX | ||
| 146 | # endif | ||
| 127 | #endif | 147 | #endif |
| 128 | 148 | ||
| 129 | #endif /* _@GUARD_PREFIX@_LIMITS_H */ | 149 | #endif /* _@GUARD_PREFIX@_LIMITS_H */ |
