From 572ac09660a872ceb664993e4eada60c91709958 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 16 Aug 2015 03:06:06 +0200 Subject: [PATCH] Fix example build errors on VS2013 and earlier VC++ does not support inline in C mode. Fixes #581. --- deps/linmath.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deps/linmath.h b/deps/linmath.h index 797e8681..ec63a040 100644 --- a/deps/linmath.h +++ b/deps/linmath.h @@ -3,6 +3,10 @@ #include +#ifdef _MSC_VER +#define inline __inline +#endif + #define LINMATH_H_DEFINE_VEC(n) \ typedef float vec##n[n]; \ static inline void vec##n##_add(vec##n r, vec##n const a, vec##n const b) \