| ... | @@ -159,6 +159,14 @@ | ... | @@ -159,6 +159,14 @@ |
| 159 | # define __KERNEL_STRICT_NAMES | 159 | # define __KERNEL_STRICT_NAMES |
| 160 | #endif | 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 | /* Convenience macro to test the version of gcc. | 170 | /* Convenience macro to test the version of gcc. |
| 163 | Use like this: | 171 | Use like this: |
| 164 | #if __GNUC_PREREQ (2,8) | 172 | #if __GNUC_PREREQ (2,8) |
| ... | @@ -501,14 +509,6 @@ | ... | @@ -501,14 +509,6 @@ |
| 501 | #undef __GNU_LIBRARY__ | 509 | #undef __GNU_LIBRARY__ |
| 502 | #define __GNU_LIBRARY__ 6 | 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 | /* This is here only because every header file already includes this one. */ | 512 | /* This is here only because every header file already includes this one. */ |
| 513 | #ifndef __ASSEMBLER__ | 513 | #ifndef __ASSEMBLER__ |
| 514 | # ifndef _SYS_CDEFS_H | 514 | # ifndef _SYS_CDEFS_H |