use round for llround. some platform (ex: mingw32) doesn't have llround.

This commit is contained in:
Yasuhiro Matsumoto
2015-07-08 18:25:52 +09:00
parent 40252169fc
commit 1167fd1ae4
+4
View File
@@ -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