35
35
#ifdef _WIN32
36
36
#include <io.h>
37
37
#else
38
- # ifndef __MACOSX__
38
+ # ifndef __APPLE__
39
39
# include <sys/io.h>
40
40
# endif
41
41
#endif
42
42
43
43
#include <fcntl.h>
44
44
45
- #ifndef __MACOSX__
45
+ #ifndef __APPLE__
46
46
#include <malloc.h>
47
47
#endif
48
48
@@ -100,7 +100,7 @@ FILE* fmkstemp(char *template) {
100
100
#define READ_U16_BE (buf ) \
101
101
(((buf)[0]<<8)|((buf)[1]&0xff))
102
102
103
- #ifdef __MACOSX__
103
+ #ifdef __APPLE__
104
104
#define READ_D64 read_d64_be
105
105
#define WRITE_D64 write_d64_be
106
106
#else
@@ -155,6 +155,7 @@ __inline long int lrint(double flt)
155
155
156
156
return intgr ;
157
157
}
158
+ /* We're not touching this as we don't want these assembler routines on GHz Intel Core i7 */
158
159
#elif (defined (__MACOSX__ ))
159
160
#define lrint double2int
160
161
inline static long
@@ -841,7 +842,7 @@ long wav_read(void *in, double **buffer, int samples, int fast, int chunk)
841
842
}
842
843
}
843
844
else if (f -> samplesize == 16 ) {
844
- #ifdef __MACOSX__
845
+ #ifdef __APPLE__
845
846
if (f -> bigendian != machine_endianness ) {
846
847
#else
847
848
if (f -> bigendian == machine_endianness ) {
@@ -861,7 +862,7 @@ long wav_read(void *in, double **buffer, int samples, int fast, int chunk)
861
862
}
862
863
}
863
864
else if (f -> samplesize == 24 ) {
864
- #ifdef __MACOSX__
865
+ #ifdef __APPLE__
865
866
if (f -> bigendian != machine_endianness ) {
866
867
#else
867
868
if (f -> bigendian == machine_endianness ) {
@@ -881,7 +882,7 @@ long wav_read(void *in, double **buffer, int samples, int fast, int chunk)
881
882
}
882
883
}
883
884
else if (f -> samplesize == 32 ) {
884
- #ifdef __MACOSX__
885
+ #ifdef __APPLE__
885
886
if (f -> bigendian != machine_endianness ) {
886
887
#else
887
888
if (f -> bigendian == machine_endianness ) {
@@ -1354,7 +1355,7 @@ int write_audio_16bit(audio_file *aufile, void *sample_buffer, unsigned int samp
1354
1355
1355
1356
aufile -> samples += samples ;
1356
1357
1357
- #ifdef __MACOSX__
1358
+ #ifdef __APPLE__
1358
1359
if (aufile -> endianness != machine_endianness ) {
1359
1360
#else
1360
1361
if (aufile -> endianness == machine_endianness ) {
0 commit comments