From f5acf94f2bef6af2950fb0404b9774dacd69049f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?=
 <zmoelnig@users.sourceforge.net>
Date: Tue, 10 May 2005 09:41:16 +0000
Subject: use "__WIN32__" instead of "NT" __WIN32__ is automatically defined on
 MinGW (at least on my debian x-compiler NT has to be defined by hand on all
 windows compilers i believe that __WIN32__ is more in line with __APPLE__ or
 __linux__

svn path=/trunk/externals/iem/iemmatrix/; revision=2932
---
 src/iemmatrix.h | 28 +++++++++++++++++++++-------
 1 file changed, 21 insertions(+), 7 deletions(-)

diff --git a/src/iemmatrix.h b/src/iemmatrix.h
index 13f5553..a5be96f 100644
--- a/src/iemmatrix.h
+++ b/src/iemmatrix.h
@@ -16,8 +16,8 @@
  */
 
 /*
- * Copyright (c) IOhannes m zm�lnig, forum::f�r::uml�ute
- * IEM, Graz, Austria
+ * Copyright (c) Thomas Musil; IEM KUG, Graz, Austria; 2001-2005
+ * Copyright (c) IOhannes m zm�lnig (forum::f�r::uml�ute), IEM KUG, Graz, Austria; 2001-2005
  *
  * For information on usage and redistribution, and for a DISCLAIMER OF ALL
  * WARRANTIES, see the file, "LICENSE.txt," in this distribution.
@@ -31,14 +31,27 @@
 #ifndef INCLUDE_IEMMATRIX_H__
 #define INCLUDE_IEMMATRIX_H__
 
-#include "m_pd.h"
 
-#define VERSION "0.1"
+#ifdef __WIN32__
+/* MinGW automaticaly defines __WIN32__
+ * other windos compilers might have to define it by hand
+ */
+
+/* m_pd.h expexts MSW rather than __WIN32__ */
+# ifndef MSW
+#  define MSW
+# endif
 
-#ifdef NT
 # pragma warning( disable : 4244 )
 # pragma warning( disable : 4305 )
-#endif
+
+#endif /* __WIN32__ */
+
+
+#include "m_pd.h"
+
+#define VERSION "0.1"
+
 
 #include <math.h>
 #include <stdio.h>
@@ -46,8 +59,9 @@
 #include <string.h>
 #include <memory.h>
 
-#ifdef NT
+#ifdef __WIN32__
 # define fabsf fabs
+# define sqrtf sqrt
 #endif
 
 typedef double t_matrixfloat;
-- 
cgit v1.2.1