Browse Source

* wrap includes in protective define

master
Alex 'AdUser' Z 11 years ago
parent
commit
4b2338755e
  1. 3
      src/bitmap.h
  2. 3
      src/image.h

3
src/bitmap.h

@ -1,3 +1,6 @@
#ifndef HAS_BITMAP_H
typedef uint16_t bitmap_t[16]; typedef uint16_t bitmap_t[16];
int bitmap_compare(bitmap_t *a, bitmap_t *b); int bitmap_compare(bitmap_t *a, bitmap_t *b);
#endif
#define HAS_BITMAP_H

3
src/image.h

@ -1,3 +1,4 @@
#ifndef HAS_IMAGE_H
typedef struct typedef struct
{ {
gdImagePtr data; gdImagePtr data;
@ -6,3 +7,5 @@ typedef struct
image_t * image_t *
image_from_file(const char *path, char **errstr); image_from_file(const char *path, char **errstr);
#endif
#define HAS_IMAGE_H

Loading…
Cancel
Save