diff options
Diffstat (limited to 'src/Platform.h')
-rw-r--r-- | src/Platform.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Platform.h b/src/Platform.h index 42e1e24..9542233 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -21,6 +21,8 @@ #include "types.h" +#include <functional> + namespace Platform { @@ -68,7 +70,7 @@ inline bool LocalFileExists(const char* name) } struct Thread; -Thread* Thread_Create(void (*func)()); +Thread* Thread_Create(std::function<void()> func); void Thread_Free(Thread* thread); void Thread_Wait(Thread* thread); |