void-packages/srcpkgs/mame/patches/musl-bgfx.patch
2017-05-01 09:53:19 +02:00

25 lines
874 B
Diff

--- 3rdparty/bgfx/src/bgfx.cpp 2017-01-24 23:44:30.000000000 +0100
+++ 3rdparty/bgfs/src/bgfx.cpp 2017-01-25 06:24:41.519845947 +0100
@@ -4,6 +4,9 @@
*/
#include <bx/platform.h>
+#if !defined(__GLIBC__)
+#include <stddef.h>
+#endif
#if BX_PLATFORM_WINDOWS
// BK - Remotery needs WinSock, but on VS2015/Win10 build
// fails if WinSock2 is included after Windows.h?!
--- 3rdparty/bx/include/bx/platform.h 2017-04-26 01:02:36.000000000 +0200
+++ 3rdparty/bx/include/bx/platform.h 2017-05-01 09:24:44.937447991 +0200
@@ -242,6 +242,10 @@
# elif defined(__apple_build_version__) || defined(__ORBIS__) || defined(__EMSCRIPTEN__) || defined(__llvm__)
# undef BX_CRT_LIBCXX
# define BX_CRT_LIBCXX 1
+# else
+# undef BX_CRT_GLIBC
+# // Fake a glibc version for musl libc
+# define BX_CRT_GLIBC (2 * 10000 + 28 * 100)
# endif //
# if !BX_CRT_BIONIC \