summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-12-08 16:48:08 +0900
committerGitHub <[email protected]>2016-12-08 16:48:08 +0900
commitb84e005fc36a3c669586cc66ab3c87630d7a5509 (patch)
treec4f0b719c48fba8844120999bcdd3ba8d05eae6b /src/string.c
parentbcd91856fd5fdbc34d7719a3a8b5434be8efff21 (diff)
parentc27dbfedf4dbd95ef17c6ad2b84933088e56d2cd (diff)
downloadmruby-b84e005fc36a3c669586cc66ab3c87630d7a5509.tar.gz
mruby-b84e005fc36a3c669586cc66ab3c87630d7a5509.zip
Merge pull request #3335 from mattn/fix-vs2013
fix build on vs2013-vs2015
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