It should be:
Code:
function SDL_GetHint( const name: PAnsiChar): PAnsiChar; cdecl; external 'SDL2.dll';