summaryrefslogtreecommitdiff
path: root/kern/printf.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-04-29 22:58:33 +0200
committerRichard Braun <rbraun@sceen.net>2017-04-29 22:58:33 +0200
commitb0ce2a8032ebaaa233148b96d2a3c0533d2dce86 (patch)
tree84d47e08a0418b984311d8f7e7cc006b41a17a5d /kern/printf.h
parent2621688c186d204806d6844de9e96050e570c801 (diff)
kern/{,s}printf: guard against direct inclusion
Diffstat (limited to 'kern/printf.h')
-rw-r--r--kern/printf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kern/printf.h b/kern/printf.h
index efaf2f9c..16a7b584 100644
--- a/kern/printf.h
+++ b/kern/printf.h
@@ -27,6 +27,10 @@
#ifndef _KERN_PRINTK_H
#define _KERN_PRINTK_H
+#ifndef _STDIO_H
+#error "do not use <kern/printf.h> directly; include <stdio.h> instead"
+#endif /* _STDIO_H */
+
#include <stdarg.h>
#include <kern/macros.h>