Skip to content

Commit 852f405

Browse files
committed
fix idiotic libs problems again
1 parent 38fdbf1 commit 852f405

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

public/tier0/basetypes.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,17 @@
3838
#define XBOX_CODELINE_ONLY() Error_Compiling_Code_Only_Valid_in_Xbox_Codeline
3939
#endif
4040

41+
42+
#if !defined(PLATFORM_GLIBC) && defined(LINUX) // fuck musl
4143
#ifdef nullptr
4244
#undef nullptr
4345
#endif
44-
4546
#define nullptr 0
47+
#endif
4648

4749

4850
// stdio.h
49-
#ifdef NULL
51+
#if !defined( NULL ) || defined( PLATFORM_BSD )
5052
#undef NULL
5153
#define NULL 0
5254
#endif

0 commit comments

Comments
 (0)