unix: Avoid redefining libm function log2l

This commit is contained in:
nia 2023-11-20 10:56:52 +01:00
parent 5c65edbbca
commit 666761c95a
1 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ static bool8 ReadJoysticks (void);
void S9xLatchJSEvent(); void S9xLatchJSEvent();
#endif #endif
static long log2 (long num) static long snes9x_log2 (long num)
{ {
long n = 0; long n = 0;
@ -1456,7 +1456,7 @@ bool8 S9xOpenSoundDevice (void)
bool(unixSettings.ThreadSound) bool(unixSettings.ThreadSound)
); );
J = log2(unixSettings.SoundFragmentSize) | (4 << 16); J = snes9x_log2(unixSettings.SoundFragmentSize) | (4 << 16);
if (ioctl(so.sound_fd, SNDCTL_DSP_SETFRAGMENT, &J) == -1) if (ioctl(so.sound_fd, SNDCTL_DSP_SETFRAGMENT, &J) == -1)
return (FALSE); return (FALSE);