From 07770f3ad369ff47386310b731d349f7af1fe0d9 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 21 Oct 2018 16:21:16 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/multithread/je_thread.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/libjin/multithread/je_thread.h') 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 #include -#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 #include #include @@ -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 -- cgit v1.1-26-g67d0