mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Improve BSD support, tested on NetBSD.
This commit is contained in:
committed by
Бранимир Караџић
parent
d60912bcb5
commit
0f3bb82216
@@ -35,6 +35,7 @@
|
||||
#define BX_CRT_MINGW 0
|
||||
#define BX_CRT_MSVC 0
|
||||
#define BX_CRT_NEWLIB 0
|
||||
#define BX_CRT_BSD 0
|
||||
|
||||
#ifndef BX_CRT_MUSL
|
||||
# define BX_CRT_MUSL 0
|
||||
@@ -242,6 +243,9 @@
|
||||
# elif defined(__apple_build_version__) || defined(__ORBIS__) || defined(__EMSCRIPTEN__) || defined(__llvm__) || defined(__HAIKU__)
|
||||
# undef BX_CRT_LIBCXX
|
||||
# define BX_CRT_LIBCXX 1
|
||||
# elif BX_PLATFORM_BSD
|
||||
# undef BX_CRT_BSD
|
||||
# define BX_CRT_BSD 1
|
||||
# endif //
|
||||
|
||||
# if !BX_CRT_BIONIC \
|
||||
@@ -250,7 +254,8 @@
|
||||
&& !BX_CRT_MINGW \
|
||||
&& !BX_CRT_MSVC \
|
||||
&& !BX_CRT_MUSL \
|
||||
&& !BX_CRT_NEWLIB
|
||||
&& !BX_CRT_NEWLIB \
|
||||
&& !BX_CRT_BSD
|
||||
# undef BX_CRT_NONE
|
||||
# define BX_CRT_NONE 1
|
||||
# endif // BX_CRT_*
|
||||
@@ -425,6 +430,8 @@
|
||||
# define BX_CRT_NAME "Newlib"
|
||||
#elif BX_CRT_MUSL
|
||||
# define BX_CRT_NAME "musl libc"
|
||||
#elif BX_CRT_BSD
|
||||
# define BX_CRT_NAME "BSD"
|
||||
#elif BX_CRT_NONE
|
||||
# define BX_CRT_NAME "None"
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user