1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-22 18:28:52 -05:00

Fix example build errors on VS2013 and earlier

VC++ does not support inline in C mode.

Fixes #581.
This commit is contained in:
Camilla Berglund 2015-08-16 03:06:06 +02:00
parent 9f5a483256
commit 572ac09660

4
deps/linmath.h vendored
View File

@ -3,6 +3,10 @@
#include <math.h>
#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) \