summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2012-01-28 18:08:10 +0100
committerDavid Herrmann <dh.herrmann@googlemail.com>2012-01-28 18:08:10 +0100
commit55d4132931b9658dc7b16a830ae60c7a473add68 (patch)
tree1e3eb6bae26bed4ee87f9972780539b050aa7de6
parentf63eaffc955190ade0bf1d0e79568b4b727981ee (diff)
console: add header protection
The header was missing a #ifndef to protect against multiple inclusions. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
-rw-r--r--src/console.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/console.h b/src/console.h
index 55fde58..3b9f746 100644
--- a/src/console.h
+++ b/src/console.h
@@ -35,6 +35,9 @@
* of it.
*/
+#ifndef KMSCON_CONSOLE_H
+#define KMSCON_CONSOLE_H
+
#include <inttypes.h>
#include <stdlib.h>
#include "font.h"
@@ -79,3 +82,5 @@ void kmscon_console_map(struct kmscon_console *con);
void kmscon_console_write(struct kmscon_console *con, kmscon_symbol_t ch);
void kmscon_console_newline(struct kmscon_console *con);
+
+#endif /* KMSCON_CONSOLE_H */