summaryrefslogtreecommitdiffhomepage
path: root/include/mrbconf.h
diff options
context:
space:
mode:
authorMax Anselm <[email protected]>2012-07-29 19:44:49 -0400
committerMax Anselm <[email protected]>2012-07-29 19:44:49 -0400
commitee899778c4f6cb0d201e50996e73639eabf98704 (patch)
tree67f4ee640a98658107511f8f03c1148846627e0c /include/mrbconf.h
parente56cd70cdb3adb073609ceb6eb0889c7181263be (diff)
downloadmruby-ee899778c4f6cb0d201e50996e73639eabf98704.tar.gz
mruby-ee899778c4f6cb0d201e50996e73639eabf98704.zip
Define __STDC_LIMIT_MACROS for INT32_MAX in C++
Diffstat (limited to 'include/mrbconf.h')
-rw-r--r--include/mrbconf.h3
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: */