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/Time/je_timer.cpp | 4 ++-- src/libjin/Time/je_timer.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/libjin/Time') diff --git a/src/libjin/Time/je_timer.cpp b/src/libjin/Time/je_timer.cpp index 6e8350b..a2f2486 100644 --- a/src/libjin/Time/je_timer.cpp +++ b/src/libjin/Time/je_timer.cpp @@ -1,5 +1,5 @@ #include "../core/je_configuration.h" -#if LIBJIN_MODULES_TIME +#if defined(jin_time) #include "je_timer.h" @@ -97,4 +97,4 @@ namespace JinEngine } // namespace Time } // namespace JinEngine -#endif // LIBJIN_MODULES_TIME +#endif // defined(jin_time) diff --git a/src/libjin/Time/je_timer.h b/src/libjin/Time/je_timer.h index 82b4b52..b6b4b9e 100644 --- a/src/libjin/Time/je_timer.h +++ b/src/libjin/Time/je_timer.h @@ -1,7 +1,7 @@ #ifndef __JE_TIMER_H #define __JE_TIMER_H #include "../core/je_configuration.h" -#if LIBJIN_MODULES_TIME +#if defined(jin_time) #include #include "SDL2/SDL.h" @@ -84,7 +84,7 @@ namespace JinEngine /// inline void sleep(int ms) { - #if LIBJIN_TIME_SDL + #if jin_time == jin_time_sdl SDL_Delay(ms); #endif } @@ -94,7 +94,7 @@ namespace JinEngine /// inline double getSecond() { - #if LIBJIN_TIME_SDL + #if jin_time == jin_time_sdl return SDL_GetTicks() / 1000.f; #endif } @@ -104,7 +104,7 @@ namespace JinEngine /// inline double getMilliSecond() { - #if LIBJIN_TIME_SDL + #if jin_time == jin_time_sdl return SDL_GetTicks(); #endif } @@ -112,6 +112,6 @@ namespace JinEngine } // namespace Time } // namespace JinEngine -#endif // LIBJIN_MODULES_TIME +#endif // defined(jin_time) #endif // __JE_TIMER_H \ No newline at end of file -- cgit v1.1-26-g67d0