aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-05-10 09:41:16 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-05-10 09:41:16 +0000
commitf5acf94f2bef6af2950fb0404b9774dacd69049f (patch)
tree8faf53a3d67be9d25a6f19e258b650ca688f7174
parent1da5d0fa847cd669de2913e570d0e7130dfc0ad0 (diff)
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
-rw-r--r--src/iemmatrix.h28
1 files 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;