authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-10-12 21:19:43-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-06-05 22:43:53-07:00
logcbe9923c2220d7e3475c0adfe87a29142fef8e6d
treecebe831a5315984ff2fb51d9585d761cd6a087a9
parentc09f5f3795bf8463dbd968d439e753ead3e8d84b

glibc patch: don't hardcode __GLIBC_MINOR__

Instead Zig passes it based on the target.

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

lib/libc/include/generic-glibc/features.h+2-2
...@@ -492,7 +492,7 @@...@@ -492,7 +492,7 @@
492/* Major and minor version number of the GNU C library package. Use492/* Major and minor version number of the GNU C library package. Use
493 these macros to test for features in specific releases. */493 these macros to test for features in specific releases. */
494#define __GLIBC__ 2494#define __GLIBC__ 2
495#define __GLIBC_MINOR__ 39495/* Zig patch: we pass `-D__GLIBC_MINOR__=XX` depending on the target. */
496496
497#define __GLIBC_PREREQ(maj, min) \497#define __GLIBC_PREREQ(maj, min) \
498 ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))498 ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
...@@ -527,4 +527,4 @@...@@ -527,4 +527,4 @@
527#include <gnu/stubs.h>527#include <gnu/stubs.h>
528528
529529
530#endif /* features.h */
\ No newline at end of file
530#endif /* features.h */