mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
glibc patch: don't hardcode __GLIBC_MINOR__
Instead Zig passes it based on the target.
This commit is contained in:
parent
c09f5f3795
commit
cbe9923c22
4
lib/libc/include/generic-glibc/features.h
vendored
4
lib/libc/include/generic-glibc/features.h
vendored
@ -492,7 +492,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__ 39
|
/* 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))
|
||||||
@ -527,4 +527,4 @@
|
|||||||
#include <gnu/stubs.h>
|
#include <gnu/stubs.h>
|
||||||
|
|
||||||
|
|
||||||
#endif /* features.h */
|
#endif /* features.h */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user