summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <[email protected]>2016-12-08 15:56:50 +0900
committerYasuhiro Matsumoto <[email protected]>2016-12-08 15:56:50 +0900
commitc27dbfedf4dbd95ef17c6ad2b84933088e56d2cd (patch)
treeaf440f0e749b58bcfa9ca6d8a1fcbd827eccd3fe /src/string.c
parenteda6c1dc0550249b6e2d92c60aaa683d2b154eaf (diff)
downloadmruby-c27dbfedf4dbd95ef17c6ad2b84933088e56d2cd.tar.gz
mruby-c27dbfedf4dbd95ef17c6ad2b84933088e56d2cd.zip
disable define const on VS
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index a9351619b..c921ca56d 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2773,7 +2773,7 @@ mrb_init_string(mrb_state *mrb)
#ifndef __STDC__
# ifdef __GNUC__
# define const __const__
-# else
+# elif !defined(_MSC_VER)
# define const
# endif
#endif