Skip to content

Commit 69c6ce5

Browse files
committed
Use PAnsiChar instead of PChar in sdlsensor.inc
1 parent e0c497a commit 69c6ce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

units/sdlsensor.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function SDL_NumSensors(): cint; cdecl;
128128
*
129129
* \since This function is available since SDL 2.0.9.
130130
*}
131-
function SDL_SensorGetDeviceName(device_index: cint): PChar; cdecl;
131+
function SDL_SensorGetDeviceName(device_index: cint): PAnsiChar; cdecl;
132132
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_SensorGetDeviceName' {$ENDIF} {$ENDIF};
133133

134134
{**
@@ -196,7 +196,7 @@ function SDL_SensorFromInstanceID(instance_id: TSDL_SensorID): PSDL_Sensor; cdec
196196
*
197197
* \since This function is available since SDL 2.0.9.
198198
*}
199-
function SDL_SensorGetName(sensor: PSDL_Sensor): PChar; cdecl;
199+
function SDL_SensorGetName(sensor: PSDL_Sensor): PAnsiChar; cdecl;
200200
external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_SensorGetName' {$ENDIF} {$ENDIF};
201201

202202
{**

0 commit comments

Comments
 (0)