commit 4dc22f47647f1039ae207a8f83ef2eed72340479
parent 00ef8b349d6c62c54d9b67e5d7ba7926c679d416
Author: Frederic Cambus <fred@statdns.com>
Date: Sun, 25 Nov 2018 17:39:53 +0100
Move the include guards to the top of header files
Diffstat:
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/drawchar.h b/src/drawchar.h
@@ -10,12 +10,12 @@
* See LICENSE file for details.
*/
-#include <gd.h>
-#include <sys/types.h>
-
#ifndef DRAWCHAR_H
#define DRAWCHAR_H
+#include <gd.h>
+#include <sys/types.h>
+
void drawchar(gdImagePtr im, const uint8_t *font_data, uint32_t bits,
uint32_t height, uint32_t column, uint32_t row,
uint32_t background, uint32_t foreground, uint8_t character);
diff --git a/src/fonts.h b/src/fonts.h
@@ -10,12 +10,12 @@
* See LICENSE file for details.
*/
-#include <stdbool.h>
-#include <stdint.h>
-
#ifndef FONTS_H
#define FONTS_H
+#include <stdbool.h>
+#include <stdint.h>
+
struct fontStruct {
const uint8_t *font_data;
uint32_t width;
diff --git a/src/output.h b/src/output.h
@@ -10,14 +10,14 @@
* See LICENSE file for details.
*/
+#ifndef OUTPUT_H
+#define OUTPUT_H
+
#include <gd.h>
struct ansilove_ctx;
struct ansilove_options;
-#ifndef OUTPUT_H
-#define OUTPUT_H
-
int output(struct ansilove_ctx *, struct ansilove_options *, gdImagePtr);
#endif /* OUTPUT_H */