Skip to content

Commit bc28823

Browse files
committed
Fixed the build for Mac OS M1
1 parent 502054d commit bc28823

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ modules.order
5050
Module.symvers
5151
Mkfile.old
5252
dkms.conf
53+
54+
ttaenc

ttaenc.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ void init_buffer_write(unsigned int pos) {
276276
lastpos = pos;
277277
}
278278

279-
__inline void get_binary(unsigned int *value, unsigned int bits) {
279+
static inline void get_binary(unsigned int *value, unsigned int bits) {
280280
while (bit_count < bits) {
281281
if (bitpos == BIT_BUFFER_END) {
282282
int res = fread(BIT_BUFFER, 1,
@@ -301,7 +301,7 @@ __inline void get_binary(unsigned int *value, unsigned int bits) {
301301
bit_cache &= bit_mask[bit_count];
302302
}
303303

304-
__inline void get_unary(unsigned int *value) {
304+
static inline void get_unary(unsigned int *value) {
305305
*value = 0;
306306

307307
while (!(bit_cache ^ bit_mask[bit_count])) {
@@ -332,7 +332,7 @@ __inline void get_unary(unsigned int *value) {
332332
bit_count--;
333333
}
334334

335-
__inline void put_binary(unsigned int value, unsigned int bits) {
335+
static inline void put_binary(unsigned int value, unsigned int bits) {
336336
while (bit_count >= 8) {
337337
if (bitpos == BIT_BUFFER_END) {
338338
int res = fwrite(BIT_BUFFER, 1,
@@ -356,7 +356,7 @@ __inline void put_binary(unsigned int value, unsigned int bits) {
356356
bit_count += bits;
357357
}
358358

359-
__inline void put_unary(unsigned int value) {
359+
static inline void put_unary(unsigned int value) {
360360
do {
361361
while (bit_count >= 8) {
362362
if (bitpos == BIT_BUFFER_END) {
@@ -514,7 +514,7 @@ write_wave(int *data, int byte_size, int num_chan, unsigned int len, FILE *fdout
514514

515515
/************************* filter functions ****************************/
516516

517-
__inline void memshl (register int *pA, register int *pB) {
517+
static inline void memshl (register int *pA, register int *pB) {
518518
*pA++ = *pB++;
519519
*pA++ = *pB++;
520520
*pA++ = *pB++;
@@ -525,7 +525,7 @@ __inline void memshl (register int *pA, register int *pB) {
525525
*pA = *pB;
526526
}
527527

528-
__inline void hybrid_filter (fltst *fs, int *in, int mode) {
528+
static inline void hybrid_filter (fltst *fs, int *in, int mode) {
529529
register int *pA = fs->dl;
530530
register int *pB = fs->qm;
531531
register int *pM = fs->dx;

0 commit comments

Comments
 (0)