diff options
Diffstat (limited to 'gl/libc-config.h')
| -rw-r--r-- | gl/libc-config.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gl/libc-config.h b/gl/libc-config.h index 70114608..33da9cf1 100644 --- a/gl/libc-config.h +++ b/gl/libc-config.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* System definitions for code taken from the GNU C Library | 1 | /* System definitions for code taken from the GNU C Library |
| 2 | 2 | ||
| 3 | Copyright 2017-2024 Free Software Foundation, Inc. | 3 | Copyright 2017-2025 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This program is free software; you can redistribute it and/or | 5 | This program is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public | 6 | modify it under the terms of the GNU Lesser General Public |
| @@ -48,6 +48,11 @@ | |||
| 48 | 48 | ||
| 49 | /* From glibc <features.h>. */ | 49 | /* From glibc <features.h>. */ |
| 50 | 50 | ||
| 51 | #if defined __clang__ | ||
| 52 | /* clang really only groks GNU C 4.2, regardless of its value of __GNUC__. */ | ||
| 53 | # undef __GNUC_PREREQ | ||
| 54 | # define __GNUC_PREREQ(maj, min) ((maj) < 4 + ((min) <= 2)) | ||
| 55 | #endif | ||
| 51 | #ifndef __GNUC_PREREQ | 56 | #ifndef __GNUC_PREREQ |
| 52 | # if defined __GNUC__ && defined __GNUC_MINOR__ | 57 | # if defined __GNUC__ && defined __GNUC_MINOR__ |
| 53 | # define __GNUC_PREREQ(maj, min) ((maj) < __GNUC__ + ((min) <= __GNUC_MINOR__)) | 58 | # define __GNUC_PREREQ(maj, min) ((maj) < __GNUC__ + ((min) <= __GNUC_MINOR__)) |
