From 4b2338755e6db69bac476899f0316a7b1deca028 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Thu, 13 Mar 2014 13:14:31 +1100 Subject: [PATCH] * wrap includes in protective define --- src/bitmap.h | 3 +++ src/image.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/bitmap.h b/src/bitmap.h index 96cd345..493c779 100644 --- a/src/bitmap.h +++ b/src/bitmap.h @@ -1,3 +1,6 @@ +#ifndef HAS_BITMAP_H typedef uint16_t bitmap_t[16]; int bitmap_compare(bitmap_t *a, bitmap_t *b); +#endif +#define HAS_BITMAP_H diff --git a/src/image.h b/src/image.h index 6f916f0..585045c 100644 --- a/src/image.h +++ b/src/image.h @@ -1,3 +1,4 @@ +#ifndef HAS_IMAGE_H typedef struct { gdImagePtr data; @@ -6,3 +7,5 @@ typedef struct image_t * image_from_file(const char *path, char **errstr); +#endif +#define HAS_IMAGE_H