Skip to content

Commit

Permalink
Remove duplicates header files in src/pool.c
Browse files Browse the repository at this point in the history
These are included in `mruby.h`.

As a background, if `enable_cxx_abi` is specified, the macro that
defines the maximum value in `stdint.h` is undefined depending on the
environment.

- Confirmed with gcc on FreeBSD 12.0 and mingw32-gcc available on
  FreeBSD.
- `INTPTR_MAX`, `INT64_MAX` and `UINT64_MAX` are defined by `cstdint`
  added in C++11. But `toolchains :gcc` adds `-std=c++03`, so the macros
  are not defined.
- To have these defined in `C++03`, `__STDC_CONSTANT_MACROS` must be
  defined in advance. This is already done by `mruby.h`.
  • Loading branch information
dearblue committed Oct 3, 2019
1 parent de176d3 commit fab062f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
** See Copyright Notice in mruby.h
*/

#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <mruby.h>

Expand Down

0 comments on commit fab062f

Please sign in to comment.