diff options
author | Marco Paland <marco@paland.com> | 2018-11-02 13:57:05 +0100 |
---|---|---|
committer | Marco Paland <marco@paland.com> | 2018-11-02 13:57:05 +0100 |
commit | cc8f3bc050042270c661c0807d6555c242e0b244 (patch) | |
tree | a3b903fccdc342a34e22bb2bc02e5bb6c872d789 /printf.h | |
parent | e7f6a916bec92bbba2cfc4d17b95bc22dec86efa (diff) | |
download | printf-cc8f3bc050042270c661c0807d6555c242e0b244.tar.gz printf-cc8f3bc050042270c661c0807d6555c242e0b244.tar.bz2 printf-cc8f3bc050042270c661c0807d6555c242e0b244.zip |
refactor(printf): move "printf_config.h" include to header
Necessary because PRINTF_OVERRIDE_LIBC is needed in header
Closes #4
Diffstat (limited to 'printf.h')
-rw-r--r-- | printf.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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" {
|