-fixed LDC demos compilation
-clean ThreadPool code -fixed betterC demos compilation
This commit is contained in:
parent
1387011b04
commit
a3b33a4935
3 changed files with 12 additions and 7 deletions
12
demos/external/sources/mmutils/thread_pool.d
vendored
12
demos/external/sources/mmutils/thread_pool.d
vendored
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue