Skip to content

Commit

Permalink
remove unnecessary <inttypes.h> inclusion
Browse files Browse the repository at this point in the history
The format specifier macros were needed to portably print a mrb_int,
because mrb_raisef() originally called vsnprintf(). It doesn't anymore
since 18b2683 and the mrb_int format
specifier macros are already gone.
  • Loading branch information
cremno committed Mar 30, 2015
1 parent 0573306 commit 18fdf7e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/mruby/value.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 18fdf7e

Please sign in to comment.