summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-time
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <[email protected]>2015-07-08 18:25:52 +0900
committerYasuhiro Matsumoto <[email protected]>2015-07-09 11:02:34 +0900
commit1167fd1ae440aa2b2b3d2cee5cb5a266d83f46e8 (patch)
tree5828b7681b3fc1b9c6b1fc92b735717fde87ecb7 /mrbgems/mruby-time
parent40252169fc9762f222106f116f2bcc510b038bf9 (diff)
downloadmruby-1167fd1ae440aa2b2b3d2cee5cb5a266d83f46e8.tar.gz
mruby-1167fd1ae440aa2b2b3d2cee5cb5a266d83f46e8.zip
use round for llround. some platform (ex: mingw32) doesn't have llround.
Diffstat (limited to 'mrbgems/mruby-time')
-rw-r--r--mrbgems/mruby-time/src/time.c4
1 files changed, 4 insertions, 0 deletions
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 <sys/time.h>
#endif