add a gcc style alignment alternative to msvc code

This commit is contained in:
Jonathan Gray 2013-04-25 15:06:09 +10:00
parent 37d2ad3bf1
commit 017bd42a1b

View file

@ -1884,7 +1884,11 @@ struct shaderCommands_s
bool fading;
};
#ifndef DEDICATED
#ifdef _MSC_VER
typedef __declspec(align(16)) shaderCommands_s shaderCommands_t;
#else
typedef __attribute__((aligned(16))) shaderCommands_s shaderCommands_t;
#endif
extern shaderCommands_t tess;
#endif
extern color4ub_t styleColors[MAX_LIGHT_STYLES];