| ... | ... | @@ -159,6 +159,14 @@ |
| 159 | 159 | # define __KERNEL_STRICT_NAMES |
| 160 | 160 | #endif |
| 161 | 161 | |
| 162 | /* Major and minor version number of the GNU C library package. Use |
| 163 | these macros to test for features in specific releases. */ |
| 164 | #define	__GLIBC__	2 |
| 165 | /* Zig patch: we pass `-D__GLIBC_MINOR__=XX` depending on the target. */ |
| 166 | |
| 167 | #define __GLIBC_PREREQ(maj, min) \ |
| 168 | 	((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min)) |
| 169 | |
| 162 | 170 | /* Convenience macro to test the version of gcc. |
| 163 | 171 | Use like this: |
| 164 | 172 | #if __GNUC_PREREQ (2,8) |
| ... | ... | @@ -501,14 +509,6 @@ |
| 501 | 509 | #undef __GNU_LIBRARY__ |
| 502 | 510 | #define __GNU_LIBRARY__ 6 |
| 503 | 511 | |
| 504 | | /* Major and minor version number of the GNU C library package. Use |
| 505 | | these macros to test for features in specific releases. */ |
| 506 | | #define	__GLIBC__	2 |
| 507 | | /* Zig patch: we pass `-D__GLIBC_MINOR__=XX` depending on the target. */ |
| 508 | | |
| 509 | | #define __GLIBC_PREREQ(maj, min) \ |
| 510 | | 	((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min)) |
| 511 | | |
| 512 | 512 | /* This is here only because every header file already includes this one. */ |
| 513 | 513 | #ifndef __ASSEMBLER__ |
| 514 | 514 | # ifndef _SYS_CDEFS_H |