* Ignore 4204 warning on MSVC (non-constant aggregrate initializer; aka non-constant struct initializer)

Patch by Buginator


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2682 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-11-02 23:33:34 +00:00
parent 533e7e92bf
commit f69387aa93
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,14 @@
#ifndef __INCLUDED_LIB_IVIS_PIEVECTOR_H__
#define __INCLUDED_LIB_IVIS_PIEVECTOR_H__
#include "lib/framework/wzglobal.h"
#if defined(WZ_CC_MSVC)
// Prevent nasty "nonstandard extension used : non-constant aggregate initializer" warning when using MSVC
#pragma warning(disable:4204)
#endif
typedef struct { int x, y; } Vector2i;
typedef struct { float x, y; } Vector2f;
typedef struct { int x, y, z; } Vector3i;