Skip to content

Commit f8f22f0

Browse files
Fix: Re-name _file to file_ in SDL_LoadWAV (in macro implementation)
1 parent e91d481 commit f8f22f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

units/sdl2.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ procedure SDL_CompilerBarrier();
330330

331331
//from "sdl_audio.h"
332332

333-
function SDL_LoadWAV(_file: PAnsiChar; spec: PSDL_AudioSpec; audio_buf: ppcuint8; audio_len: pcuint32): PSDL_AudioSpec;
333+
function SDL_LoadWAV(file_: PAnsiChar; spec: PSDL_AudioSpec; audio_buf: ppcuint8; audio_len: pcuint32): PSDL_AudioSpec;
334334
begin
335-
Result := SDL_LoadWAV_RW(SDL_RWFromFile(_file, 'rb'), 1, spec, audio_buf, audio_len);
335+
Result := SDL_LoadWAV_RW(SDL_RWFromFile(file_, 'rb'), 1, spec, audio_buf, audio_len);
336336
end;
337337

338338
function SDL_AUDIO_BITSIZE(x: Cardinal): Cardinal;

0 commit comments

Comments
 (0)