summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-math
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-11-24 20:43:56 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-11-24 20:43:56 +0900
commit2e30c68562e6c653191a57fa396e0591b878936f (patch)
tree87475cd017f9db2ccffca41878831aeb0bbeadc9 /mrbgems/mruby-math
parent4d21a68d35b00dbefc496f6d3bd5cfbd2ef9e122 (diff)
downloadmruby-2e30c68562e6c653191a57fa396e0591b878936f.tar.gz
mruby-2e30c68562e6c653191a57fa396e0591b878936f.zip
Move `MRB_NO_FLOAT` detection in `mruby-math`; #5185
Diffstat (limited to 'mrbgems/mruby-math')
-rw-r--r--mrbgems/mruby-math/src/math.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-math/src/math.c b/mrbgems/mruby-math/src/math.c
index f2622109d..3a593b7cf 100644
--- a/mrbgems/mruby-math/src/math.c
+++ b/mrbgems/mruby-math/src/math.c
@@ -4,13 +4,13 @@
** See Copyright Notice in mruby.h
*/
+#include <mruby.h>
+
#ifdef MRB_NO_FLOAT
# error Math conflicts with 'MRB_NO_FLOAT' configuration
#endif
-#include <mruby.h>
#include <mruby/array.h>
-
#include <math.h>
static void