Fixed sfwl build.

This commit is contained in:
Relintai 2024-01-19 22:37:03 +01:00
parent c28f3c7fe0
commit 042e1a3d16
4 changed files with 17 additions and 1 deletions

View File

@ -3,12 +3,16 @@
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
/*************************************************************************/
//--STRIP
#include "thread.h"
//--STRIP
#if !defined(NO_THREADS)
//--STRIP
#include "core/error_macros.h"
#include "core/safe_refcount.h"
//--STRIP
Error (*Thread::set_name_func)(const String &) = nullptr;
void (*Thread::set_priority_func)(Thread::Priority) = nullptr;
@ -107,4 +111,7 @@ Thread::ID Thread::get_caller_id() {
return caller_id;
}
}
#endif
//--STRIP
#endif // THREAD_H
//--STRIP

View File

@ -1,15 +1,22 @@
//--STRIP
#ifndef THREAD_H
#define THREAD_H
//--STRIP
/*************************************************************************/
/* thread.h */
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
/*************************************************************************/
//--STRIP
#include "core/typedefs.h"
#if !defined(NO_THREADS)
#include "core/safe_refcount.h"
#endif
//--STRIP
#if !defined(NO_THREADS)
#include <thread>
#endif
@ -92,4 +99,6 @@ public:
#endif
};
//--STRIP
#endif // THREAD_H
//--STRIP