add a gcc style alignment alternative to msvc code

This commit is contained in:
Jonathan Gray 2013-04-28 12:16:55 +10:00
parent 92d13d1c98
commit 6d2a2a5c1e

View file

@ -1474,10 +1474,12 @@ struct shaderCommands_s
qboolean SSInitializedWind;
};
#ifndef DEDICATED
#ifdef _MSVC_VER
typedef __declspec(align(16)) shaderCommands_s shaderCommands_t;
extern shaderCommands_t tess;
#else
typedef __attribute__((aligned(16))) shaderCommands_s shaderCommands_t;
#endif
extern shaderCommands_t tess;
extern color4ub_t styleColors[MAX_LIGHT_STYLES];
void RB_BeginSurface(shader_t *shader, int fogNum );