mruby-time: refactor _POSIX_TIMERS handling issue; ref #6124

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-12-25 23:59:43 +09:00
parent a8b82bfae5
commit ae43ce7593
+1 -6
View File
@@ -84,12 +84,7 @@ double round(double x) {
/** end of Time class configuration */
/* protection against incorrectly defined _POSIX_TIMERS */
#if (_POSIX_TIMERS + 0) == 0
#undef _POSIX_TIMERS
#define _POSIX_TIMERS 0
#endif
#if (defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0) && defined(CLOCK_REALTIME)
#if defined(_POSIX_TIMERS) && (_POSIX_TIMERS + 0) > 0 && defined(CLOCK_REALTIME)
# define USE_CLOCK_GETTIME
#endif