Commit 18433731 authored by cremno's avatar cremno

remove various preprocessor conditionals

- HAVE_IEEEFP_H is nowhere defined or needed at all
- FreeBSD < 4 is unsupported since years
- MSVC workaround (around what exactly?)
parent e8dd8180
...@@ -15,10 +15,6 @@ ...@@ -15,10 +15,6 @@
#include <math.h> #include <math.h>
#include <ctype.h> #include <ctype.h>
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
#define BIT_DIGITS(N) (((N)*146)/485 + 1) /* log2(10) =~ 146/485 */ #define BIT_DIGITS(N) (((N)*146)/485 + 1) /* log2(10) =~ 146/485 */
#define BITSPERDIG (sizeof(mrb_int)*CHAR_BIT) #define BITSPERDIG (sizeof(mrb_int)*CHAR_BIT)
#define EXTENDSIGN(n, l) (((~0 << (n)) >> (((n)*(l)) % BITSPERDIG)) & ~(~0 << (n))) #define EXTENDSIGN(n, l) (((~0 << (n)) >> (((n)*(l)) % BITSPERDIG)) & ~(~0 << (n)))
......
...@@ -4,12 +4,7 @@ ...@@ -4,12 +4,7 @@
** See Copyright Notice in mruby.h ** See Copyright Notice in mruby.h
*/ */
#ifndef SIZE_MAX #include <limits.h>
/* Some versions of VC++
* has SIZE_MAX in stdint.h
*/
# include <limits.h>
#endif
#include "mruby.h" #include "mruby.h"
#include "mruby/array.h" #include "mruby/array.h"
#include "mruby/class.h" #include "mruby/class.h"
......
...@@ -4,12 +4,7 @@ ...@@ -4,12 +4,7 @@
** See Copyright Notice in mruby.h ** See Copyright Notice in mruby.h
*/ */
#ifndef SIZE_MAX #include <limits.h>
/* Some versions of VC++
* has SIZE_MAX in stdint.h
*/
# include <limits.h>
#endif
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include "mruby.h" #include "mruby.h"
......
...@@ -4,12 +4,7 @@ ...@@ -4,12 +4,7 @@
** See Copyright Notice in mruby.h ** See Copyright Notice in mruby.h
*/ */
#ifndef SIZE_MAX #include <limits.h>
/* Some versions of VC++
* has SIZE_MAX in stdint.h
*/
# include <limits.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "mruby/dump.h" #include "mruby/dump.h"
......
...@@ -5,12 +5,6 @@ ...@@ -5,12 +5,6 @@
*/ */
#include <float.h> #include <float.h>
#if defined(__FreeBSD__) && __FreeBSD__ < 4
# include <floatingpoint.h>
#endif
#ifdef HAVE_IEEEFP_H
# include <ieeefp.h>
#endif
#include <limits.h> #include <limits.h>
#include <math.h> #include <math.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -5,12 +5,7 @@ ...@@ -5,12 +5,7 @@
*/ */
#include <ctype.h> #include <ctype.h>
#ifndef SIZE_MAX #include <limits.h>
/* Some versions of VC++
* has SIZE_MAX in stdint.h
*/
# include <limits.h>
#endif
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment