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?)
This commit is contained in:
cremno
2014-01-02 07:33:33 +01:00
parent e8dd8180ba
commit 18433731ed
6 changed files with 4 additions and 34 deletions
-4
View File
@@ -15,10 +15,6 @@
#include <math.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 BITSPERDIG (sizeof(mrb_int)*CHAR_BIT)
#define EXTENDSIGN(n, l) (((~0 << (n)) >> (((n)*(l)) % BITSPERDIG)) & ~(~0 << (n)))
+1 -6
View File
@@ -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"
+1 -6
View File
@@ -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"
+1 -6
View File
@@ -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"
-6
View File
@@ -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>
+1 -6
View File
@@ -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>