From: matthew Date: Sat, 28 Jul 2018 17:44:04 +0000 (+0000) Subject: added include guards X-Git-Url: https://git.owens.tech/assets/static/gitweb.css/assets/static/gitweb.css/git?a=commitdiff_plain;h=8d590dbeea3ad871baffb4bf031ad02a4d7c4085;p=csrpg.git added include guards --- diff --git a/common/point.h b/common/point.h index aaaff87..87dba3c 100644 --- a/common/point.h +++ b/common/point.h @@ -4,7 +4,8 @@ * floats. This makes the header versitile as it can also be * used to store other data. For example: colour information */ - +#ifndef POINT_H +#define POINT_H typedef struct { int x, y; } Point2i; typedef struct { int x, y, z ; } Point3i; typedef struct { int w, x, y , z; } Point4i; @@ -12,3 +13,4 @@ typedef struct { int w, x, y , z; } Point4i; typedef struct { float x, y; } Point2f; typedef struct { float x, y, z; } Point3f; typedef struct { float w, x, y, z; } Point4f; +#endif//POINT_H diff --git a/common/tile.h b/common/tile.h index 25c6757..aee4a81 100644 --- a/common/tile.h +++ b/common/tile.h @@ -1,3 +1,5 @@ +#ifndef TILE_H +#define TILE_H #include "point.h" enum Terrain{ @@ -17,3 +19,4 @@ Tile *tile_init(Point3i pos, enum Terrain ter); void tile_cleanup(Tile *t); Point3i tile_position(Tile *t); enum Terrain tile_terrain(Tile *t); +#endif//TILE_H