summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-01 13:03:42 +0100
committerErich Eckner <git@eckner.net>2018-11-01 13:03:42 +0100
commit010ebe05197f5b738fe7eb78a1c8ec135d93e516 (patch)
tree645c693d85bf5b889a57f78fda7b43df09a51d52
parenta9679f6210fad1b1d8b05529dd6f4443c633365b (diff)
downloadanzeige-010ebe05197f5b738fe7eb78a1c8ec135d93e516.tar.xz
include *.h files only once
-rw-r--r--fonts.h5
-rw-r--r--input_gadgets.h5
-rw-r--r--multiplexer.h5
3 files changed, 15 insertions, 0 deletions
diff --git a/fonts.h b/fonts.h
index bb70309..f69db46 100644
--- a/fonts.h
+++ b/fonts.h
@@ -1,3 +1,6 @@
+#ifndef FONTS_H
+#define FONTS_H
+
#include <uchar.h>
#define MAX_SYMBOL_WIDTH 6
@@ -136,3 +139,5 @@ static int symbols_boundaries[SYMBOL_COUNT][2];
void init_symbols_boundaries();
int render(char *input, int input_len, char *output, int max_output_len, int skip_unprintables);
+
+#endif // FONTS_H
diff --git a/input_gadgets.h b/input_gadgets.h
index 2f4f135..1c667e3 100644
--- a/input_gadgets.h
+++ b/input_gadgets.h
@@ -1,3 +1,6 @@
+#ifndef INPUT_GADGETS_H
+#define INPUT_GADGETS_H
+
typedef struct {
char *memory;
size_t size;
@@ -15,3 +18,5 @@ typedef struct {
char *gadgets_retrieve_current_temperature(char *output, int max_len);
char *gadgets_retrieve_weather_forecast(char *output, int max_len);
char *gadgets_retrieve_weather_warnings(char *output, int max_len);
+
+#endif // INPUT_GADGETS_H
diff --git a/multiplexer.h b/multiplexer.h
index bf40ad5..cd2eb60 100644
--- a/multiplexer.h
+++ b/multiplexer.h
@@ -1,3 +1,6 @@
+#ifndef MULTIPLEXER_H
+#define MULTIPLEXER_H
+
//
// How to access GPIO registers from C-code on the Raspberry-Pi
// Example program
@@ -88,3 +91,5 @@ void multiplexer_setup_non_root(t_display_data *display_data);
void multiplexer_setup_scroll(t_scroll_data *scroll_data);
void turn_off_display();
int got_input();
+
+#endif // MULTIPLEXER_H