]> git.pond.sub.org Git - empserver/commitdiff
Guard unit.h against multiple inclusion
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 16 Sep 2008 22:47:06 +0000 (18:47 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 16 Sep 2008 22:47:06 +0000 (18:47 -0400)
include/unit.h

index df31adca08c9f9176ba621cfaa4393dbc438435f..b9fe96bc6fb08614eb9df89d0c5dc5a8c7c6150c 100644 (file)
@@ -32,6 +32,9 @@
  *     Markus Armbruster, 2006
  */
  
+#ifndef UNIT_H
+#define UNIT_H
+
 #include "empobj.h"
 
 struct ulist {
@@ -60,3 +63,5 @@ extern void unit_update_cargo(struct empobj *);
 extern void unit_drop_cargo(struct empobj *, natid);
 extern void unit_give_away(struct empobj *, natid, natid);
 extern void unit_wipe_orders(struct empobj *);
+
+#endif