authorgravatar for mail@danielsaier.deDaniel Saier <mail@danielsaier.de> 2022-01-19 20:55:01+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-01-19 17:56:58-05:00
log4a401b20e46d779f41dae3406160265eef2d6e5b
treefad8ae3723197aa4dd6481d5402c1126a0536912
parent7767e52bbf7d3a7a017d59df8a6e164a5803b747

glibc: fix passing of __GNU_MINOR__

This was originally introduced in 4d48948b526337947ef59a83f7dbc81b70aa5723 but broken immediately afterwards in c8af00c66e8b6f62e4dd6ac4d86a3de03e9ea354.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/libc/include/generic-glibc/features.h+1-1
...@@ -477,7 +477,7 @@...@@ -477,7 +477,7 @@
477/* Major and minor version number of the GNU C library package. Use477/* Major and minor version number of the GNU C library package. Use
478 these macros to test for features in specific releases. */478 these macros to test for features in specific releases. */
479#define __GLIBC__ 2479#define __GLIBC__ 2
480#define __GLIBC_MINOR__ 34480/* Zig patch: we pass `-D__GLIBC_MINOR__=XX` depending on the target. */
481481
482#define __GLIBC_PREREQ(maj, min) \482#define __GLIBC_PREREQ(maj, min) \
483 ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))483 ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))