From eb3cb526d17260ccb4cbe527d12083e91d03ac5b Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 15 May 2011 20:23:33 +0200 Subject: Fixed compile with GCC 4.6 * Include cstddef to be able to use size_t * Replace NULL with 0 since NULL doesn't happen to be defined in any included header file --- src/game-server/autoattack.h | 1 + src/game-server/thing.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game-server/autoattack.h b/src/game-server/autoattack.h index 2ce5c71d..268f429c 100644 --- a/src/game-server/autoattack.h +++ b/src/game-server/autoattack.h @@ -21,6 +21,7 @@ #ifndef AUTOATTACK_H #define AUTOATTACK_H +#include #include #include diff --git a/src/game-server/thing.h b/src/game-server/thing.h index a5e1bd8f..9409a0b2 100644 --- a/src/game-server/thing.h +++ b/src/game-server/thing.h @@ -37,7 +37,7 @@ class MapComposite; class Thing { public: - Thing(ThingType type, MapComposite *map = NULL) + Thing(ThingType type, MapComposite *map = 0) : mMap(map), mType(type) {} -- cgit v1.2.3-70-g09d2