Moved the extern "C" { } until after all the includes have been done.
This commit is contained in:
parent
2b40dc133d
commit
8a233ddfbb
1 changed files with 7 additions and 4 deletions
11
Math/mat3.h
11
Math/mat3.h
|
@ -7,10 +7,6 @@
|
||||||
#ifndef MAT3_HAS_BEEN_INCLUDED
|
#ifndef MAT3_HAS_BEEN_INCLUDED
|
||||||
#define MAT3_HAS_BEEN_INCLUDED
|
#define MAT3_HAS_BEEN_INCLUDED
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* ----------------------------- Constants ------------------------------ */
|
/* ----------------------------- Constants ------------------------------ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -23,6 +19,11 @@ extern "C" {
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define MAT3_DET0 -1 /* Indicates singular mat */
|
#define MAT3_DET0 -1 /* Indicates singular mat */
|
||||||
#define MAT3_EPSILON 1e-12 /* Close enough to zero */
|
#define MAT3_EPSILON 1e-12 /* Close enough to zero */
|
||||||
#define MAT3_PI 3.141592653589793 /* Pi */
|
#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 MAT3cross_product(MAT3vec result,MAT3vec,MAT3vec);
|
||||||
void MAT3perp_vec(MAT3vec result_vec, MAT3vec vec, int is_unit);
|
void MAT3perp_vec(MAT3vec result_vec, MAT3vec vec, int is_unit);
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif /* MAT3_HAS_BEEN_INCLUDED */
|
#endif /* MAT3_HAS_BEEN_INCLUDED */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue