From: Giuseppe Bilotta Date: Mon, 14 Nov 2011 17:40:41 +0000 (+0100) Subject: Fix structs being declared as classes X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=96c30452f9d2e6085769baa5befbcbcf62a507c4;p=zefram%2Fminetest%2Fminetest_engine.git Fix structs being declared as classes Some compilers complain when a class is declared as a struct or vice versa. Fix by making sure that the correct tag is used both in declaration and definition. --- diff --git a/src/camera.h b/src/camera.h index 8321a1f0..973ae3f3 100644 --- a/src/camera.h +++ b/src/camera.h @@ -29,7 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include class LocalPlayer; -class MapDrawControl; +struct MapDrawControl; class ExtrudedSpriteSceneNode; class IGameDef; diff --git a/src/inventory.h b/src/inventory.h index a303fa0d..24591f33 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -31,7 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc., class ServerActiveObject; class ServerEnvironment; -class PointedThing; +struct PointedThing; class ITextureSource; class IGameDef; diff --git a/src/materials.h b/src/materials.h index 9db33fc6..bcf93058 100644 --- a/src/materials.h +++ b/src/materials.h @@ -93,7 +93,7 @@ struct DiggingProperties u16 wear; }; -class ToolDiggingProperties; +struct ToolDiggingProperties; class INodeDefManager; DiggingProperties getDiggingProperties(u16 content, ToolDiggingProperties *tp,