diff options
Diffstat (limited to 'src/libjin/Time')
-rw-r--r-- | src/libjin/Time/je_timer.cpp | 4 | ||||
-rw-r--r-- | src/libjin/Time/je_timer.h | 10 |
2 files changed, 7 insertions, 7 deletions
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 <vector> #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 |