]> git.mxchange.org Git - simgear.git/blobdiff - Math/MAT3mat.c
FreeBSD support.
[simgear.git] / Math / MAT3mat.c
index d827cf9424522ddf5af6cfbb4954d3bb8cb935c7..6eb74cb1cab30d81348406a912378643f5f482d5 100644 (file)
@@ -5,6 +5,11 @@
  * This file contains routines that operate solely on matrices.
  * -------------------------------------------------------------------------*/
 
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #ifdef WIN32
 #  include <memory.h>      /* required for memset() and memcpy() */
 #endif
@@ -23,6 +28,8 @@
 /* --------------------------  Public Routines ---------------------------- */
 
 
+#if !defined( USE_XTRA_MAT3_INLINES )
+
 /*
  * Sets a matrix to identity.
  */
@@ -90,6 +97,7 @@ MAT3mult (double (*result_mat)[4], register double (*mat1)[4], register double (
                       mat1[i][3] * mat2[3][j]);
    MAT3copy (result_mat, tmp_mat);
 }
+#endif // !defined( USE_XTRA_MAT3_INLINES )
 
 /*
  * This returns the transpose of a matrix.  The result matrix may be