-fixed LDC demos compilation

-clean ThreadPool code
-fixed betterC demos compilation
This commit is contained in:
Mergul 2021-03-03 12:29:59 +01:00
parent 1387011b04
commit a3b33a4935
3 changed files with 12 additions and 7 deletions

View file

@ -33,8 +33,14 @@ else
version (D_BetterC)
{
version (Posix) version = MM_USE_POSIX_THREADS;
import bubel.ecs.std;
extern (C) __gshared int _d_eh_personality(int, int, size_t, void*, void*)
extern (C) void free(void*) @nogc nothrow @system;
extern (C) void* malloc(size_t size) @nogc nothrow @system;
extern (C) void* realloc(void*, size_t size) @nogc nothrow @system;
extern (C) void* memcpy(return void*, scope const void*, size_t size) @nogc nothrow @system;
//hacks for LDC
/*extern (C) __gshared int _d_eh_personality(int, int, size_t, void*, void*)
{
return 0;
}
@ -47,7 +53,7 @@ version (D_BetterC)
extern (C) void* _d_allocmemory(size_t sz)
{
return malloc(sz);
}
}*/
}
else
{