mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 23:59:37 +02:00
[NYQUIST] Fix error build with MinGW and CYGWIN (#556)
When compiling, I got this error: /lib-src/libnyquist/nyquist/nyqsrc/sndread.c: In function 'snd_make_read': /lib-src/libnyquist/nyquist/nyqsrc/sndread.c:169:30: error: invalid operands to binary | (have 'int' and 'long int *') 169 | susp->sf_info.format |= format; | ^~ I would like to suggest this fix for this error.
This commit is contained in:
parent
717ceb6525
commit
bf859736b2
@ -161,12 +161,11 @@ LVAL snd_make_read(
|
|||||||
/* write the code so it will only compile if one and only one
|
/* write the code so it will only compile if one and only one
|
||||||
ENDIAN setting is defined */
|
ENDIAN setting is defined */
|
||||||
#ifdef XL_LITTLE_ENDIAN
|
#ifdef XL_LITTLE_ENDIAN
|
||||||
long format = SF_ENDIAN_BIG;
|
susp->sf_info.format |= SF_ENDIAN_BIG;
|
||||||
#endif
|
#endif
|
||||||
#ifdef XL_BIG_ENDIAN
|
#ifdef XL_BIG_ENDIAN
|
||||||
long format = SF_ENDIAN_LITTLE;
|
susp->sf_info.format |= SF_ENDIAN_LITTLE;
|
||||||
#endif
|
#endif
|
||||||
susp->sf_info.format |= format;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
susp->sndfile = NULL;
|
susp->sndfile = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user