aboutsummaryrefslogtreecommitdiffstats
path: root/printf.h
diff options
context:
space:
mode:
Diffstat (limited to 'printf.h')
-rw-r--r--printf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/printf.h b/printf.h
index a51e9a5..b82e70f 100644
--- a/printf.h
+++ b/printf.h
@@ -35,6 +35,13 @@
#include <stdarg.h>
#include <stddef.h>
+// define this globally (e.g. gcc -DPRINTF_INCLUDE_CONFIG_H ...) to include the
+// printf_config.h header file
+// default: undefined
+#ifdef PRINTF_INCLUDE_CONFIG_H
+#include "printf_config.h"
+#endif
+
#ifdef __cplusplus
extern "C" {