Skip to content

Commit

Permalink
Remove limits.h from numeric.h. Add limits.h to some C files.
Browse files Browse the repository at this point in the history
  • Loading branch information
monaka committed Mar 29, 2013
1 parent 8326b0a commit a01e968
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/mruby/numeric.h
Expand Up @@ -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))
Expand Down
1 change: 1 addition & 0 deletions mrbgems/mruby-numeric-ext/src/numeric_ext.c
@@ -1,3 +1,4 @@
#include <limits.h>
#include "mruby.h"
#include "mruby/numeric.h"

Expand Down
1 change: 1 addition & 0 deletions mrbgems/mruby-sprintf/src/sprintf.c
Expand Up @@ -6,6 +6,7 @@

#include "mruby.h"

#include <limits.h>
#include <stdio.h>
#include <string.h>
#include "mruby/string.h"
Expand Down
1 change: 1 addition & 0 deletions src/numeric.c
Expand Up @@ -13,6 +13,7 @@
#include <math.h>
#include <assert.h>
#include <stdlib.h>
#include <limits.h>

#if defined(__FreeBSD__) && __FreeBSD__ < 4
#include <floatingpoint.h>
Expand Down

0 comments on commit a01e968

Please sign in to comment.