From 8a233ddfbb94bc3eda6f50cbb382e001bae6155f Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 7 May 1998 23:20:45 +0000 Subject: [PATCH] Moved the extern "C" { } until after all the includes have been done. --- Math/mat3.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Math/mat3.h b/Math/mat3.h index dd4e67db8..89148b1c5 100644 --- a/Math/mat3.h +++ b/Math/mat3.h @@ -7,10 +7,6 @@ #ifndef MAT3_HAS_BEEN_INCLUDED #define MAT3_HAS_BEEN_INCLUDED -#ifdef __cplusplus -extern "C" { -#endif - /* ----------------------------- Constants ------------------------------ */ /* @@ -23,6 +19,11 @@ extern "C" { #include +#ifdef __cplusplus +extern "C" { +#endif + + #define MAT3_DET0 -1 /* Indicates singular mat */ #define MAT3_EPSILON 1e-12 /* Close enough to zero */ #define MAT3_PI 3.141592653589793 /* Pi */ @@ -147,9 +148,11 @@ int MAT3mult_hvec (MAT3hvec result_vec, MAT3hvec vec, MAT3mat mat, int normaliz void MAT3cross_product(MAT3vec result,MAT3vec,MAT3vec); void MAT3perp_vec(MAT3vec result_vec, MAT3vec vec, int is_unit); + #ifdef __cplusplus } #endif + #endif /* MAT3_HAS_BEEN_INCLUDED */ -- 2.39.5