added include guards
authormatthew <matthew@owens.tech>
Sat, 28 Jul 2018 17:44:04 +0000 (17:44 +0000)
committermatthew <matthew@owens.tech>
Sat, 28 Jul 2018 17:44:04 +0000 (17:44 +0000)
common/point.h
common/tile.h

index aaaff87..87dba3c 100644 (file)
@@ -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
index 25c6757..aee4a81 100644 (file)
@@ -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