mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
use round for llround. some platform (ex: mingw32) doesn't have llround.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user