From ba4b64e3c7df19356ff867533b47257932df691f Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Thu, 29 Mar 2018 16:10:34 -0600 Subject: Made linmath sane for C++ inclusion --- redist/linmath.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'redist') diff --git a/redist/linmath.h b/redist/linmath.h index 1a73a06..71fd9b0 100644 --- a/redist/linmath.h +++ b/redist/linmath.h @@ -3,6 +3,10 @@ #ifndef _LINMATH_H #define _LINMATH_H +#ifdef __cplusplus +extern "C" { +#endif + // Yes, I know it's kind of arbitrary. #define DEFAULT_EPSILON 0.001 @@ -140,4 +144,8 @@ Matrix3x3 inverseM33(const Matrix3x3 mat); void matrix44copy(FLT *mout, const FLT *minm); void matrix44transpose(FLT *mout, const FLT *minm); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3