diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-01-02 13:52:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-02 13:52:21 +0100 |
| commit | 1e108210b67b4e1a3bfef60d0a7718b8d0080c1a (patch) | |
| tree | 3669cfa7ceb8813f82199f6b9b66ad7f7c5d7b65 /gl/getopt-cdefs.in.h | |
| parent | e2694816e78986f7a97691dc5b013cbeb7eede4f (diff) | |
| parent | bfc6492562f6cef4badda192142a0d10a3ed870b (diff) | |
| download | monitoring-plugins-1e108210.tar.gz | |
Merge branch 'master' into netsnmp595-fix
Diffstat (limited to 'gl/getopt-cdefs.in.h')
| -rw-r--r-- | gl/getopt-cdefs.in.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gl/getopt-cdefs.in.h b/gl/getopt-cdefs.in.h index a1d304d4..3a5d06be 100644 --- a/gl/getopt-cdefs.in.h +++ b/gl/getopt-cdefs.in.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* getopt-on-non-glibc compatibility macros. | 1 | /* getopt-on-non-glibc compatibility macros. |
| 2 | Copyright (C) 1989-2024 Free Software Foundation, Inc. | 2 | Copyright (C) 1989-2025 Free Software Foundation, Inc. |
| 3 | This file is part of gnulib. | 3 | This file is part of gnulib. |
| 4 | Unlike most of the getopt implementation, it is NOT shared | 4 | Unlike most of the getopt implementation, it is NOT shared |
| 5 | with the GNU C Library. | 5 | with the GNU C Library. |
| @@ -46,10 +46,14 @@ | |||
| 46 | # endif | 46 | # endif |
| 47 | #endif | 47 | #endif |
| 48 | 48 | ||
| 49 | #if defined __clang__ | ||
| 50 | /* clang really only groks GNU C 4.2, regardless of its value of __GNUC__. */ | ||
| 51 | # undef __GNUC_PREREQ | ||
| 52 | # define __GNUC_PREREQ(maj, min) ((maj) < 4 + ((min) <= 2)) | ||
| 53 | #endif | ||
| 49 | #ifndef __GNUC_PREREQ | 54 | #ifndef __GNUC_PREREQ |
| 50 | # if defined __GNUC__ && defined __GNUC_VERSION__ | 55 | # if defined __GNUC__ && defined __GNUC_MINOR__ |
| 51 | # define __GNUC_PREREQ(maj, min) \ | 56 | # define __GNUC_PREREQ(maj, min) ((maj) < __GNUC__ + ((min) <= __GNUC_MINOR__)) |
| 52 | ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) | ||
| 53 | # else | 57 | # else |
| 54 | # define __GNUC_PREREQ(maj, min) 0 | 58 | # define __GNUC_PREREQ(maj, min) 0 |
| 55 | # endif | 59 | # endif |
