Basically it replaces all occurences of __declspec(align(16)) with macros that work on both GCC and MSVC (probably, did not test anything but compiling on GCC/amd64 yet -.-). Other compilers have to be added into the alignment.h created by that patch.
Anyone can review the patch and maybe push it into the main repo?
*This does not take care of __forceinline which GCC does not know, however that can also be solved before including the library, e.g.:
Code: Select all
#ifdef __GNUC__
#define __forceinline __attribute__((always_inline))
#endif
#include "vectormath/cpp/vectormath_aos.h"
EDIT: Argh. Just seeing now that there already is a patch not a page away in the forum. Just ignore this.