aboutsummaryrefslogtreecommitdiffstats
path: root/gb_math.h
diff options
context:
space:
mode:
authorGravatar gingerBill 2016-05-23 21:36:38 +0100
committerGravatar gingerBill 2016-05-23 21:36:38 +0100
commit3504269eed303c3265007be802f4a9c5c4c5e45b (patch)
tree77d44856378ef808fd20b85be5d17f232789d08b /gb_math.h
parentRaw keyboard and mouse input for WIN32 (diff)
Controller vibration
Diffstat (limited to 'gb_math.h')
-rw-r--r--gb_math.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/gb_math.h b/gb_math.h
index 0a9f5e5..c371a2b 100644
--- a/gb_math.h
+++ b/gb_math.h
@@ -1,8 +1,9 @@
-/* gb_math.h - v0.06e - public domain C math library - no warranty implied; use at your own risk
+/* gb_math.h - v0.06f - public domain C math library - no warranty implied; use at your own risk
A C math library geared towards game development
use '#define GB_MATH_IMPLEMENTATION' before including to create the implementation in _ONE_ file
Version History:
+ 0.06f - Remove warning on MSVC
0.06e - Change brace style and fix some warnings
0.06d - Bug fix
0.06c - Remove extra needed define for C++ and inline all operators
@@ -62,6 +63,11 @@ CONTENTS
#endif
#endif
+#if defined(_MSC_VER)
+#pragma warning(push)
+#pragma warning(disable:4201)
+#endif
+
typedef union gbVec2 {
struct { float x, y; };
float e[2];
@@ -113,6 +119,9 @@ typedef union gbQuat {
} gbQuat;
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif
typedef float gbFloat2[2];
typedef float gbFloat3[3];