Fixed Visual Studio build
authorSam Lantinga <slouken@libsdl.org>
Tue, 04 Feb 2020 16:05:39 -0800
changeset 134867057789eda0d
parent 13485 a41d8d126fc3
child 13487 e6b1848e4f1e
Fixed Visual Studio build
src/joystick/hidapi/SDL_hidapi_rumble.c
     1.1 --- a/src/joystick/hidapi/SDL_hidapi_rumble.c	Tue Feb 04 15:42:49 2020 -0800
     1.2 +++ b/src/joystick/hidapi/SDL_hidapi_rumble.c	Tue Feb 04 16:05:39 2020 -0800
     1.3 @@ -28,6 +28,7 @@
     1.4  #include "SDL_thread.h"
     1.5  #include "SDL_hidapijoystick_c.h"
     1.6  #include "SDL_hidapi_rumble.h"
     1.7 +#include "../../thread/SDL_systhread.h"
     1.8  
     1.9  
    1.10  typedef struct SDL_HIDAPI_RumbleRequest
    1.11 @@ -127,7 +128,7 @@
    1.12      }
    1.13  
    1.14      ctx->running = SDL_TRUE;
    1.15 -    ctx->thread = SDL_CreateThread(SDL_HIDAPI_RumbleThread, "HIDAPI Rumble", ctx);
    1.16 +    ctx->thread = SDL_CreateThreadInternal(SDL_HIDAPI_RumbleThread, "HIDAPI Rumble", 0, ctx);
    1.17      if (!ctx->thread) {
    1.18          SDL_HIDAPI_StopRumbleThread(ctx);
    1.19          return -1;