summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcremno <[email protected]>2015-03-30 21:01:16 +0200
committercremno <[email protected]>2015-03-30 21:01:16 +0200
commit18fdf7e03f7b7d79b2374797d4c2348c896fa0f8 (patch)
tree56abb2909aa5da2b329a115eeac23643cf947a7f
parent0573306f510b9503f6baa7e9e1d158205add503d (diff)
downloadmruby-18fdf7e03f7b7d79b2374797d4c2348c896fa0f8.tar.gz
mruby-18fdf7e03f7b7d79b2374797d4c2348c896fa0f8.zip
remove unnecessary <inttypes.h> inclusion
The format specifier macros were needed to portably print a mrb_int, because mrb_raisef() originally called vsnprintf(). It doesn't anymore since 18b2683b97ae54d4f2f15c19076f33aa29eaf2b7 and the mrb_int format specifier macros are already gone.
-rw-r--r--include/mruby/value.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h
index f27800366..4938113f0 100644
--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -61,11 +61,7 @@ MRB_API int mrb_msvc_snprintf(char *s, size_t n, const char *format, ...);
static const unsigned int IEEE754_INFINITY_BITS_SINGLE = 0x7F800000;
# define INFINITY (*(float *)&IEEE754_INFINITY_BITS_SINGLE)
# define NAN ((float)(INFINITY - INFINITY))
-# else
-# include <inttypes.h>
# endif
-#else
-# include <inttypes.h>
#endif
enum mrb_vtype {