summaryrefslogtreecommitdiffhomepage
path: root/src/sprintf.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-06-12 03:10:37 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-06-12 03:10:37 -0700
commitdb1244cef5b21074945f26eb4351d7feecb31af4 (patch)
tree8fb17d41725c706bd28aa3033648bcdb0b101be2 /src/sprintf.c
parentf537e2bb96a85d7ca75777f64cad13fea8d4937c (diff)
parente1e4ceb3e42dab35038a52d89064ca6378a08c7d (diff)
downloadmruby-db1244cef5b21074945f26eb4351d7feecb31af4.tar.gz
mruby-db1244cef5b21074945f26eb4351d7feecb31af4.zip
Merge pull request #263 from monaka/pr-make-sprintf-optional
Make sprintf/format optional.
Diffstat (limited to 'src/sprintf.c')
-rw-r--r--src/sprintf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sprintf.c b/src/sprintf.c
index 296a7c73e..c7e7badc4 100644
--- a/src/sprintf.c
+++ b/src/sprintf.c
@@ -5,6 +5,9 @@
*/
#include "mruby.h"
+
+#ifdef INCLUDE_KERNEL_SPRINTF
+
#include <stdio.h>
#include <string.h>
#include "encoding.h"
@@ -1078,3 +1081,5 @@ fmt_setup(char *buf, size_t size, int c, int flags, int width, int prec)
*buf++ = c;
*buf = '\0';
}
+
+#endif //INCLUDE_KERNEL_SPRINTF