diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-03-29 16:10:34 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-03-29 16:10:34 -0600 |
commit | ba4b64e3c7df19356ff867533b47257932df691f (patch) | |
tree | 7b4a7c31c539658f14e0322f1698c6db94cdb0fa /redist/linmath.h | |
parent | d366c1dc70487246e1a1948e33d8a998f54a82ae (diff) | |
download | libsurvive-ba4b64e3c7df19356ff867533b47257932df691f.tar.gz libsurvive-ba4b64e3c7df19356ff867533b47257932df691f.tar.bz2 |
Made linmath sane for C++ inclusion
Diffstat (limited to 'redist/linmath.h')
-rw-r--r-- | redist/linmath.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |