mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
glibc: fix passing of __GNU_MINOR__
This was originally introduced in 4d48948b526337947ef59a83f7dbc81b70aa5723 but broken immediately afterwards in c8af00c66e8b6f62e4dd6ac4d86a3de03e9ea354.
This commit is contained in:
parent
881e507ac5
commit
dcbab17b62
2
lib/libc/include/generic-glibc/features.h
vendored
2
lib/libc/include/generic-glibc/features.h
vendored
@ -477,7 +477,7 @@
|
|||||||
/* Major and minor version number of the GNU C library package. Use
|
/* Major and minor version number of the GNU C library package. Use
|
||||||
these macros to test for features in specific releases. */
|
these macros to test for features in specific releases. */
|
||||||
#define __GLIBC__ 2
|
#define __GLIBC__ 2
|
||||||
#define __GLIBC_MINOR__ 34
|
/* Zig patch: we pass `-D__GLIBC_MINOR__=XX` depending on the target. */
|
||||||
|
|
||||||
#define __GLIBC_PREREQ(maj, min) \
|
#define __GLIBC_PREREQ(maj, min) \
|
||||||
((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
|
((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user