summaryrefslogtreecommitdiffhomepage
path: root/src/sprintf.c
diff options
context:
space:
mode:
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