add a gcc style alignment alternative to msvc code

This commit is contained in:
Jonathan Gray 2013-04-22 22:40:16 +10:00
parent 6fc2559179
commit 1cfc2bde7b

View file

@ -1679,7 +1679,11 @@ struct shaderCommands_s
bool fading;
};
#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;