diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-10 00:06:06 +0100 | 
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-10 00:06:06 +0100 | 
| commit | 21c39515903c34bc6428a544c88cf1c100786847 (patch) | |
| tree | c9d0465e24cc3148c84c2fee191f2b1bfc71b841 /gl/limits.in.h | |
| parent | ed01d534474cc640515f1d5155349f14090aafe9 (diff) | |
| parent | 5d7d620903a2fb40f8cd3140081bfb7ceaf125d5 (diff) | |
| download | monitoring-plugins-21c39515903c34bc6428a544c88cf1c100786847.tar.gz | |
Merge branch 'master' into check_swap_again
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 */ | 
