mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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
@@ -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"
|
||||
|
||||
+1
-6
@@ -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"
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user