Browse files

Remove limits.h from numeric.h. Add limits.h to some C files.

  • Loading branch information...
1 parent 8326b0a commit a01e968cdbb940dba24ee95ba0129396c39e9fe7 @monaka monaka committed Mar 29, 2013
View
2 include/mruby/numeric.h
@@ -11,8 +11,6 @@
extern "C" {
#endif
-#include <limits.h>
-
#define POSFIXABLE(f) ((f) <= MRB_INT_MAX)
#define NEGFIXABLE(f) ((f) >= MRB_INT_MIN)
#define FIXABLE(f) (POSFIXABLE(f) && NEGFIXABLE(f))
View
1 mrbgems/mruby-numeric-ext/src/numeric_ext.c
@@ -1,3 +1,4 @@
+#include <limits.h>
#include "mruby.h"
#include "mruby/numeric.h"
View
1 mrbgems/mruby-sprintf/src/sprintf.c
@@ -6,6 +6,7 @@
#include "mruby.h"
+#include <limits.h>
#include <stdio.h>
#include <string.h>
#include "mruby/string.h"
View
1 src/numeric.c
@@ -13,6 +13,7 @@
#include <math.h>
#include <assert.h>
#include <stdlib.h>
+#include <limits.h>
#if defined(__FreeBSD__) && __FreeBSD__ < 4
#include <floatingpoint.h>

0 comments on commit a01e968

Please sign in to comment.