mirror of
https://github.com/Relintai/sfw.git
synced 2025-01-03 05:09:36 +01:00
Fixed sfwl build.
This commit is contained in:
parent
c28f3c7fe0
commit
042e1a3d16
@ -3,12 +3,16 @@
|
|||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
|
//--STRIP
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
|
//--STRIP
|
||||||
|
|
||||||
#if !defined(NO_THREADS)
|
#if !defined(NO_THREADS)
|
||||||
|
|
||||||
|
//--STRIP
|
||||||
#include "core/error_macros.h"
|
#include "core/error_macros.h"
|
||||||
#include "core/safe_refcount.h"
|
#include "core/safe_refcount.h"
|
||||||
|
//--STRIP
|
||||||
|
|
||||||
Error (*Thread::set_name_func)(const String &) = nullptr;
|
Error (*Thread::set_name_func)(const String &) = nullptr;
|
||||||
void (*Thread::set_priority_func)(Thread::Priority) = nullptr;
|
void (*Thread::set_priority_func)(Thread::Priority) = nullptr;
|
||||||
@ -107,4 +111,7 @@ Thread::ID Thread::get_caller_id() {
|
|||||||
return caller_id;
|
return caller_id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
//--STRIP
|
||||||
|
#endif // THREAD_H
|
||||||
|
//--STRIP
|
||||||
|
@ -1,15 +1,22 @@
|
|||||||
|
//--STRIP
|
||||||
#ifndef THREAD_H
|
#ifndef THREAD_H
|
||||||
#define THREAD_H
|
#define THREAD_H
|
||||||
|
//--STRIP
|
||||||
|
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
/* thread.h */
|
/* thread.h */
|
||||||
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
/* From https://github.com/Relintai/pandemonium_engine (MIT) */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
|
//--STRIP
|
||||||
#include "core/typedefs.h"
|
#include "core/typedefs.h"
|
||||||
|
|
||||||
#if !defined(NO_THREADS)
|
#if !defined(NO_THREADS)
|
||||||
#include "core/safe_refcount.h"
|
#include "core/safe_refcount.h"
|
||||||
|
#endif
|
||||||
|
//--STRIP
|
||||||
|
|
||||||
|
#if !defined(NO_THREADS)
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -92,4 +99,6 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//--STRIP
|
||||||
#endif // THREAD_H
|
#endif // THREAD_H
|
||||||
|
//--STRIP
|
||||||
|
Loading…
Reference in New Issue
Block a user