diff options
| author | Max Anselm <[email protected]> | 2012-07-29 19:44:49 -0400 |
|---|---|---|
| committer | Max Anselm <[email protected]> | 2012-07-29 19:44:49 -0400 |
| commit | ee899778c4f6cb0d201e50996e73639eabf98704 (patch) | |
| tree | 67f4ee640a98658107511f8f03c1148846627e0c | |
| parent | e56cd70cdb3adb073609ceb6eb0889c7181263be (diff) | |
| download | mruby-ee899778c4f6cb0d201e50996e73639eabf98704.tar.gz mruby-ee899778c4f6cb0d201e50996e73639eabf98704.zip | |
Define __STDC_LIMIT_MACROS for INT32_MAX in C++
| -rw-r--r-- | include/mrbconf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mrbconf.h b/include/mrbconf.h index cf8217b23..b0a33aa43 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -7,6 +7,9 @@ #ifndef MRUBYCONF_H #define MRUBYCONF_H +#if defined(__cplusplus) +#define __STDC_LIMIT_MACROS +#endif #include <stdint.h> /* configuration options: */ |
