Restrict struct warning suppression to clang only (#50)

* Restrict struct warning suppression to clang only

* Update changelist

* Move gcc diagnostic pop inside header section
This commit is contained in:
Ben Visness
2017-01-15 09:50:53 -08:00
committed by Zak Strange
parent ad3039186d
commit 666f7e3325

View File

@@ -153,7 +153,6 @@
(*) Added HMM_NormalizeVec4
1.0
(*) Lots of testing!
1.1
(*) Quaternion support
(*) Added type hmm_quaternion
@@ -170,6 +169,8 @@
(*) Added HMM_Slerp
(*) Added HMM_QuaternionToMat4
(*) Added HMM_QuaternionFromAxisAngle
1.1.1
(*) Resolved compiler warnings on gcc and g++
LICENSE
@@ -206,7 +207,8 @@
#pragma warning(disable:4201)
#endif
#ifdef __GNUC__
#ifdef __clang__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wgnu-anonymous-struct"
#endif
@@ -657,6 +659,10 @@ HMMDEF hmm_quaternion &operator/=(hmm_quaternion &Left, float Right);
#endif /* HANDMADE_MATH_CPP */
#ifdef __clang__
#pragma GCC diagnostic pop
#endif
#endif /* HANDMADE_MATH_H */
#ifdef HANDMADE_MATH_IMPLEMENTATION