mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5510 from dearblue/check-stdint
Output an error if the `INTPTR_MAX` macro is undefined in C++
This commit is contained in:
@@ -44,6 +44,9 @@
|
||||
#include <limits.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#ifndef UINTPTR_MAX
|
||||
#error Must be placed `#include <mruby.h>` before `#include <stdint.h>`
|
||||
#endif
|
||||
#ifndef SIZE_MAX
|
||||
#ifdef __SIZE_MAX__
|
||||
#define SIZE_MAX __SIZE_MAX__
|
||||
|
||||
Reference in New Issue
Block a user