diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-01-02 15:43:23 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-01-02 15:43:23 -0800 |
| commit | 0d8737c1a7d8e5d4fc87b649d80b71753228c7ca (patch) | |
| tree | 0c019637a8c2a48506b61c88eae5ae165b85755b /src | |
| parent | d6a0308a711a5dbaccef5ef12c153567b099a9d5 (diff) | |
| parent | 18433731edff73cc5254a76c86b7272a1430d0f7 (diff) | |
| download | mruby-0d8737c1a7d8e5d4fc87b649d80b71753228c7ca.tar.gz mruby-0d8737c1a7d8e5d4fc87b649d80b71753228c7ca.zip | |
Merge pull request #1635 from cremno/cpp-conditionals
remove various preprocessor conditionals
Diffstat (limited to 'src')
| -rw-r--r-- | src/array.c | 7 | ||||
| -rw-r--r-- | src/gc.c | 7 | ||||
| -rw-r--r-- | src/load.c | 7 | ||||
| -rw-r--r-- | src/numeric.c | 6 | ||||
| -rw-r--r-- | src/string.c | 7 |
5 files changed, 4 insertions, 30 deletions
diff --git a/src/array.c b/src/array.c index 0fb257d7e..f9097baa7 100644 --- a/src/array.c +++ b/src/array.c @@ -4,12 +4,7 @@ ** See Copyright Notice in mruby.h */ -#ifndef SIZE_MAX - /* Some versions of VC++ - * has SIZE_MAX in stdint.h - */ -# include <limits.h> -#endif +#include <limits.h> #include "mruby.h" #include "mruby/array.h" #include "mruby/class.h" @@ -4,12 +4,7 @@ ** See Copyright Notice in mruby.h */ -#ifndef SIZE_MAX - /* Some versions of VC++ - * has SIZE_MAX in stdint.h - */ -# include <limits.h> -#endif +#include <limits.h> #include <string.h> #include <stdlib.h> #include "mruby.h" diff --git a/src/load.c b/src/load.c index adc2416df..57845b2ca 100644 --- a/src/load.c +++ b/src/load.c @@ -4,12 +4,7 @@ ** See Copyright Notice in mruby.h */ -#ifndef SIZE_MAX - /* Some versions of VC++ - * has SIZE_MAX in stdint.h - */ -# include <limits.h> -#endif +#include <limits.h> #include <stdlib.h> #include <string.h> #include "mruby/dump.h" diff --git a/src/numeric.c b/src/numeric.c index db90d81fb..0b841bf70 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -5,12 +5,6 @@ */ #include <float.h> -#if defined(__FreeBSD__) && __FreeBSD__ < 4 -# include <floatingpoint.h> -#endif -#ifdef HAVE_IEEEFP_H -# include <ieeefp.h> -#endif #include <limits.h> #include <math.h> #include <stdlib.h> diff --git a/src/string.c b/src/string.c index 1c577188e..a687a4c29 100644 --- a/src/string.c +++ b/src/string.c @@ -5,12 +5,7 @@ */ #include <ctype.h> -#ifndef SIZE_MAX - /* Some versions of VC++ - * has SIZE_MAX in stdint.h - */ -# include <limits.h> -#endif +#include <limits.h> #include <stddef.h> #include <stdlib.h> #include <string.h> |
