From 1167fd1ae440aa2b2b3d2cee5cb5a266d83f46e8 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 8 Jul 2015 18:25:52 +0900 Subject: use round for llround. some platform (ex: mingw32) doesn't have llround. --- mrbgems/mruby-time/src/time.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mrbgems/mruby-time') diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c index 081e84c1c..c18ac7568 100644 --- a/mrbgems/mruby-time/src/time.c +++ b/mrbgems/mruby-time/src/time.c @@ -11,6 +11,10 @@ #include "mruby/class.h" #include "mruby/data.h" +#if !defined(__MINGW64__) && defined(_WIN32) +# define llround(x) round(x) +#endif + #if defined(__MINGW64__) || defined(__MINGW32__) # include #endif -- cgit v1.2.3