Merge pull request #1635 from cremno/cpp-conditionals

remove various preprocessor conditionals
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-01-02 15:43:23 -08:00
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>