diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-01-09 14:57:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-09 14:57:57 +0100 |
| commit | da4fb28fca51b180d50608b0c847b1c0927cd8c5 (patch) | |
| tree | d20769e0a61ac2ba76920190050d3e0a3e7c85b7 /gl/getopt-cdefs.in.h | |
| parent | b09a8b530df8a23610889d0b89b148f22db3568a (diff) | |
| parent | f694f4cd4dfead0da6feab04d92335d9bbe185b6 (diff) | |
| download | monitoring-plugins-da4fb28f.tar.gz | |
Merge branch 'master' into refactor/check_ide_smart
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 |
