mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Rearrange SIZE_MAX. It is supported also VC++ since its version10. And there seems SIZE_MAX is defined in stdint.h. And it possibly (depends on the version of VC++) conflicts with SIZE_MAX in limits.h. This patch is no need if I did not support VC++.
This commit is contained in:
+6
-1
@@ -5,7 +5,12 @@
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#include <limits.h>
|
||||
#ifndef SIZE_MAX
|
||||
/* Some versions of VC++
|
||||
* has SIZE_MAX in stdint.h
|
||||
*/
|
||||
# include <limits.h>
|
||||
#endif
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
Reference in New Issue
Block a user