From 852f4052be67d7789a27489b17ac362afc919c0b Mon Sep 17 00:00:00 2001 From: nillerusr Date: Tue, 25 Apr 2023 00:45:25 +0300 Subject: [PATCH] fix idiotic libs problems again --- public/tier0/basetypes.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/tier0/basetypes.h b/public/tier0/basetypes.h index 27ef9618..8a267122 100644 --- a/public/tier0/basetypes.h +++ b/public/tier0/basetypes.h @@ -38,15 +38,17 @@ #define XBOX_CODELINE_ONLY() Error_Compiling_Code_Only_Valid_in_Xbox_Codeline #endif + +#if !defined(PLATFORM_GLIBC) && defined(LINUX) // fuck musl #ifdef nullptr #undef nullptr #endif - #define nullptr 0 +#endif // stdio.h -#ifdef NULL +#if !defined( NULL ) || defined( PLATFORM_BSD ) #undef NULL #define NULL 0 #endif