summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-04-05 13:41:26 +0900
committerGitHub <[email protected]>2019-04-05 13:41:26 +0900
commitdd1c100b840dfc024040f677fc536141b06853de (patch)
treeac0b3b27502d6cb0f40c93b54b088b3df5b1c56a /src
parent50a223f21ff33718f3217ae61ee9fe326f14f935 (diff)
parent5e0caefa58bb0fae4174858abb3ba8cd7ccf7058 (diff)
downloadmruby-dd1c100b840dfc024040f677fc536141b06853de.tar.gz
mruby-dd1c100b840dfc024040f677fc536141b06853de.zip
Merge pull request #4355 from shuujii/modify-else-and-endif-annotations-in-src-fmt_fp.c
Modify `#else` and `#endif` annotations in `src/fmt_fp.c` [ci skip]
Diffstat (limited to 'src')
-rw-r--r--src/fmt_fp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fmt_fp.c b/src/fmt_fp.c
index 14c74ef9e..1f1af6764 100644
--- a/src/fmt_fp.c
+++ b/src/fmt_fp.c
@@ -372,7 +372,7 @@ mrb_float_to_str(mrb_state *mrb, mrb_value flo, const char *fmt)
}
return f.str;
}
-#else /* MRB_DISABLE_STDIO */
+#else /* MRB_DISABLE_STDIO || _WIN32 || _WIN64 */
#include <mruby.h>
#include <stdio.h>
@@ -384,5 +384,5 @@ mrb_float_to_str(mrb_state *mrb, mrb_value flo, const char *fmt)
snprintf(buf, sizeof(buf), fmt, mrb_float(flo));
return mrb_str_new_cstr(mrb, buf);
}
-#endif /* MRB_DISABLE_STDIO */
+#endif /* MRB_DISABLE_STDIO || _WIN32 || _WIN64 */
#endif