[PD-cvs] pd/src d_array.c,1.3.4.3.2.3,1.3.4.3.2.4
Jamie Tittle
tigital at users.sourceforge.net
Fri Apr 21 00:20:42 CEST 2006
Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25354
Modified Files:
Tag: devel_0_39
d_array.c
Log Message:
[osx]fix for big/little endian in tabosc4
Index: d_array.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/d_array.c,v
retrieving revision 1.3.4.3.2.3
retrieving revision 1.3.4.3.2.4
diff -C2 -d -r1.3.4.3.2.3 -r1.3.4.3.2.4
*** d_array.c 30 Nov 2005 13:36:57 -0000 1.3.4.3.2.3
--- d_array.c 20 Apr 2006 22:20:39 -0000 1.3.4.3.2.4
***************
*** 572,579 ****
#else
#ifdef __APPLE__
#define HIOFFSET 0 /* word offset to find MSB */
#define LOWOFFSET 1 /* word offset to find LSB */
! #define int32 int /* a data type that has 32 bits */
!
#endif /* __APPLE__ */
#endif /* __linux__ */
--- 572,583 ----
#else
#ifdef __APPLE__
+ #define int32 int /* a data type that has 32 bits */
+ #ifdef __BIG_ENDIAN__
#define HIOFFSET 0 /* word offset to find MSB */
#define LOWOFFSET 1 /* word offset to find LSB */
! #elif defined(__LITTLE_ENDIAN__)
! #define HIOFFSET 1
! #define LOWOFFSET 0
! #endif /*__*_ENDIAN__*/
#endif /* __APPLE__ */
#endif /* __linux__ */
More information about the Pd-cvs
mailing list