aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Holzmann <grholzi@users.sourceforge.net>2007-01-17 14:52:17 +0000
committerGeorg Holzmann <grholzi@users.sourceforge.net>2007-01-17 14:52:17 +0000
commit100242128792ea2cb671838f5cffb9fc974c535f (patch)
tree77b2c71ed160ba18b14a2883e4f18bbabb6eb52c
parentf723e97c0b1cd6674650776690781863e0e6804f (diff)
applied mac intel fix patch from thomas grill
svn path=/trunk/externals/iemlib/; revision=7359
-rw-r--r--iemlib2/src/iemlib.h5
-rw-r--r--iemlib2/src/protect_against_open.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/iemlib2/src/iemlib.h b/iemlib2/src/iemlib.h
index 36d47ca..46bc8d7 100644
--- a/iemlib2/src/iemlib.h
+++ b/iemlib2/src/iemlib.h
@@ -80,8 +80,13 @@ should have been by CPU type and not by operating system! */
#else
#ifdef __APPLE__
+#ifdef __BIG_ENDIAN__
#define HIOFFSET 0 /* word offset to find MSB */
#define LOWOFFSET 1 /* word offset to find LSB */
+#else
+#define HIOFFSET 1 /* word offset to find MSB */
+#define LOWOFFSET 0 /* word offset to find LSB */
+#endif
#define int32 int /* a data type that has 32 bits */
#endif /* __APPLE__ */
diff --git a/iemlib2/src/protect_against_open.c b/iemlib2/src/protect_against_open.c
index 046bf95..fcb27da 100644
--- a/iemlib2/src/protect_against_open.c
+++ b/iemlib2/src/protect_against_open.c
@@ -20,7 +20,7 @@ iemlib2 written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2006
/* -- if you putting this object into a subpatch or an abstraction, -- */
/* ------------ you cannot open again this subpatch ------------------ */
-t_widgetbehavior protect_against_open_widgetbehavior;
+static t_widgetbehavior protect_against_open_widgetbehavior;
static t_class *protect_against_open_class;
typedef struct _protect_against_open