aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/multithread/je_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/multithread/je_thread.h')
-rw-r--r--src/libjin/multithread/je_thread.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libjin/multithread/je_thread.h b/src/libjin/multithread/je_thread.h
index b3a3e2e..353690c 100644
--- a/src/libjin/multithread/je_thread.h
+++ b/src/libjin/multithread/je_thread.h
@@ -1,13 +1,13 @@
#ifndef __JE_THREAD_H
#define __JE_THREAD_H
#include "../core/je_configuration.h"
-#if LIBJIN_MODULES_THREAD
+#if defined(jin_thread)
#include <string>
#include <map>
-#if LIBJIN_THREAD_SDL
+#if jin_thread == jin_thread_sdl
#include "SDL2/SDL_thread.h"
-#elif LIBJIN_THREAD_CPP
+#elif jin_thread == jin_thread_cpp
#include <thread>
#include <mutex>
#include <condition_variable>
@@ -116,9 +116,9 @@ namespace JinEngine
void unlock();
protected:
- #if LIBJIN_THREAD_SDL
+ #if jin_thread == jin_thread_sdl
SDL_Thread* handle; // SDL thread
- #elif LIBJIN_THREAD_CPP
+ #elif jin_thread == jin_thread_cpp
std::thread* handle; // cpp thread
#endif
Mutex* mutex; // mutex variable
@@ -162,6 +162,6 @@ namespace JinEngine
} // namespace MultiThread
} // namespace JinEngine
-#endif // LIBJIN_MODULES_THREAD
+#endif // defined(jin_thread)
#endif // __JE_THREAD_H \ No newline at end of file