* 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-861f7616d084master
parent
533e7e92bf
commit
f69387aa93
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue