aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-23 01:40:17 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-23 01:40:17 +0000
commit6c38d4c61b0eb5a539d0c668f524fe1a66643a68 (patch)
treee909617570736b43a72e7a5f65317838c96a3ad0
parent38ddcbc93a1b98c7622ba8dd8183f42381ead655 (diff)
checked in small Intel Mac fix from Thomas Grill, patch #1604142
svn path=/trunk/externals/miXed/; revision=8866
-rw-r--r--cyclone/sickle/Clip.c4
-rw-r--r--shared/shared.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/cyclone/sickle/Clip.c b/cyclone/sickle/Clip.c
index 2888be1..d6efd96 100644
--- a/cyclone/sickle/Clip.c
+++ b/cyclone/sickle/Clip.c
@@ -13,7 +13,7 @@
typedef t_sic t_clip;
static t_class *clip_class;
-static t_int *clip_perform(t_int *w)
+static t_int *Clip_perform(t_int *w)
{
int nblock = (int)(w[1]);
t_float *in1 = (t_float *)(w[2]);
@@ -37,7 +37,7 @@ static t_int *clip_perform(t_int *w)
static void clip_dsp(t_clip *x, t_signal **sp)
{
- dsp_add(clip_perform, 5, sp[0]->s_n,
+ dsp_add(Clip_perform, 5, sp[0]->s_n,
sp[0]->s_vec, sp[1]->s_vec, sp[2]->s_vec, sp[3]->s_vec);
}
diff --git a/shared/shared.h b/shared/shared.h
index 0e60dbd..73e84e2 100644
--- a/shared/shared.h
+++ b/shared/shared.h
@@ -91,8 +91,13 @@ typedef unsigned short uint16;
#ifndef uchar
typedef unsigned char uchar;
#endif
+#ifdef __BIG_ENDIAN__
#define SHARED_HIOFFSET 0
#define SHARED_LOWOFFSET 1
+#else
+#define SHARED_HIOFFSET 1
+#define SHARED_LOWOFFSET 0
+#endif
#endif
#ifdef IRIX