summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-04 13:48:53 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-04 13:48:53 +0900
commitbd0e9db1f1e2c4990c2e55001031b1a0e5c9bb25 (patch)
tree87572167c8a1bb8f0c7130e40b73bce555fbf32e /include
parent8a9e2066c3124f6bcd65d724bd519265a7d6ebe9 (diff)
parent84e1b0a9d0a42beef58de97142b4c6a31387621a (diff)
downloadmruby-bd0e9db1f1e2c4990c2e55001031b1a0e5c9bb25.tar.gz
mruby-bd0e9db1f1e2c4990c2e55001031b1a0e5c9bb25.zip
Merge pull request #2358 from cremno/visual-studio-14-ctp-support
upcoming Visual Studio versions provide `snprintf`
Diffstat (limited to 'include')
-rw-r--r--include/mruby/value.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mruby/value.h b/include/mruby/value.h
index 83696715d..98af9626d 100644
--- a/include/mruby/value.h
+++ b/include/mruby/value.h
@@ -70,7 +70,9 @@ typedef short mrb_sym;
# ifndef __cplusplus
# define inline __inline
# endif
-# define snprintf _snprintf
+# if _MSC_VER < 1900
+# define snprintf _snprintf
+# endif
# if _MSC_VER < 1800
# include <float.h>
# define isfinite(n) _finite(n)