Browse Source

After using SDL_qsort, mark sort_entries() as SDLCALL

Sylvain 2 years ago
parent
commit
6f344f29b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/joystick/linux/SDL_sysjoystick.c

+ 1 - 1
src/joystick/linux/SDL_sysjoystick.c

@@ -659,7 +659,7 @@ static int filter_entries(const struct dirent *entry)
 {
 {
     return IsJoystickDeviceNode(entry->d_name);
     return IsJoystickDeviceNode(entry->d_name);
 }
 }
-static int sort_entries(const void *_a, const void *_b)
+static int SDLCALL sort_entries(const void *_a, const void *_b)
 {
 {
     const struct dirent **a = (const struct dirent **)_a;
     const struct dirent **a = (const struct dirent **)_a;
     const struct dirent **b = (const struct dirent **)_b;
     const struct dirent **b = (const struct dirent **)_b;