mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +00:00
glibc: fix passing of __GNU_MINOR__
This was originally introduced in4d48948b52
but broken immediately afterwards inc8af00c66e
.
This commit is contained in:
parent
7767e52bbf
commit
4a401b20e4
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…
Reference in New Issue
Block a user