From 2f3e74a10708d8020a74e01ca980b7b9af82511c Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Fri, 2 Nov 2007 19:43:56 +0000 Subject: [PATCH] * Add include guards to source:trunk/lib/ivis_common/pievector.h git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2679 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/ivis_common/pievector.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ivis_common/pievector.h b/lib/ivis_common/pievector.h index c4665fb84..d1438416f 100644 --- a/lib/ivis_common/pievector.h +++ b/lib/ivis_common/pievector.h @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#ifndef __INCLUDED_LIB_IVIS_PIEVECTOR_H__ +#define __INCLUDED_LIB_IVIS_PIEVECTOR_H__ + typedef struct { int x, y; } Vector2i; typedef struct { float x, y; } Vector2f; typedef struct { int x, y, z; } Vector3i; @@ -311,3 +314,5 @@ static inline WZ_DECL_CONST BOOL Vector3i_InSphere (const Vector3i v, const Vect Vector3i delta = Vector3i_Sub(v, c); return (delta.x * delta.x) + (delta.y * delta.y) + (delta.z * delta.z) < (r * r); } + +#endif // __INCLUDED_LIB_IVIS_PIEVECTOR_H__