aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Heckenberg <dheck@users.sourceforge.net>2003-03-09 11:10:53 +0000
committerDaniel Heckenberg <dheck@users.sourceforge.net>2003-03-09 11:10:53 +0000
commit4503d2a4c9e406ac50cbbca51b2b83d7fa7b6d99 (patch)
tree456b29e51dbc0629b9029aabd0785f6e715894ba
parent2243aed73c65c75981b37a7ff133f41732ceaff3 (diff)
Minor changes for compilation using Visual C++ 6.0 (SP3) under Windows
ncluding: - no array declaration with variable size - fixed signed/unsigned comparison warnings svn path=/trunk/externals/zexy/; revision=460
-rw-r--r--src/z_matrix.c3
-rw-r--r--src/z_mtx.c3
-rw-r--r--src/z_prime.c2
-rw-r--r--src/z_random.c4
-rw-r--r--src/z_strings.c3
-rw-r--r--src/z_urn.c2
6 files changed, 10 insertions, 7 deletions
diff --git a/src/z_matrix.c b/src/z_matrix.c
index a0cd4d9..d9f1221 100644
--- a/src/z_matrix.c
+++ b/src/z_matrix.c
@@ -56,7 +56,8 @@
#endif
#ifdef NT
-#include <memory.h>
+#include <memory.h>
+#include <string.h>
#define fabsf fabs
#pragma warning( disable : 4244 )
#pragma warning( disable : 4305 )
diff --git a/src/z_mtx.c b/src/z_mtx.c
index 785c7e9..0f5edc6 100644
--- a/src/z_mtx.c
+++ b/src/z_mtx.c
@@ -48,7 +48,8 @@
#include <math.h>
#ifdef NT
-#include <memory.h>
+#include <memory.h>
+#include <string.h>
#define fabsf fabs
#pragma warning( disable : 4244 )
#pragma warning( disable : 4305 )
diff --git a/src/z_prime.c b/src/z_prime.c
index 2af18b2..5e4a9d0 100644
--- a/src/z_prime.c
+++ b/src/z_prime.c
@@ -14,7 +14,7 @@ void prime_float(t_prime *x, t_float f)
unsigned int i=f;
unsigned int max_divisor;
- int divisor=1;
+ unsigned int divisor=1;
if (f<2)return;
diff --git a/src/z_random.c b/src/z_random.c
index 9a4bb9e..a115572 100644
--- a/src/z_random.c
+++ b/src/z_random.c
@@ -55,10 +55,10 @@ static void urn_clear(t_urn *x)
}
static void urn_bang(t_urn *x)
{
- int range = (x->x_range<1?1:x->x_range);
+ unsigned int range = (x->x_range<1?1:x->x_range);
unsigned int randval = x->x_seed;
- int nval, used=1;
+ unsigned int nval, used=1;
if (x->x_count>=range){
outlet_bang(x->x_bangout);
diff --git a/src/z_strings.c b/src/z_strings.c
index 08314e8..d540248 100644
--- a/src/z_strings.c
+++ b/src/z_strings.c
@@ -1,7 +1,8 @@
#include "zexy.h"
#include <stdlib.h>
-#ifdef NT
+#ifdef NT
+#include <string.h>
#pragma warning( disable : 4244 )
#pragma warning( disable : 4305 )
#define sqrtf sqrt
diff --git a/src/z_urn.c b/src/z_urn.c
index 3376106..5b31330 100644
--- a/src/z_urn.c
+++ b/src/z_urn.c
@@ -57,7 +57,7 @@ static void urn_bang(t_urn *x)
unsigned int range = (x->x_range<1?1:x->x_range);
unsigned int randval = (unsigned int)x->x_state;
- int nval, used=1;
+ unsigned int nval, used=1;
if (x->x_count>=range)urn_clear(x);