Skip to content

Commit b194970

Browse files
committed
fix windows build
1 parent 6596dfa commit b194970

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/haptic/hidapi/SDL_hidapihaptic_lg4ff.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
#ifdef SDL_HAPTIC_HIDAPI_LG4FF
2929

30-
#include "SDL_thread.h"
30+
#include "../../thread/SDL_systhread.h"
3131
#include "SDL_mutex.h"
3232
#include "SDL_timer.h"
3333

@@ -922,7 +922,7 @@ static void *SDL_HIDAPI_HapticDriverLg4ff_Open(SDL_Joystick *joystick)
922922

923923
SDL_snprintf(ctx->thread_name_buf, sizeof(ctx->thread_name_buf), "SDL_hidapihaptic_lg4ff %d %04x:%04x", SDL_JoystickInstanceID(joystick), USB_VENDOR_ID_LOGITECH, ctx->product_id);
924924
ctx->stop_thread = SDL_FALSE;
925-
ctx->thread = SDL_CreateThread(SDL_HIDAPI_HapticDriverLg4ff_ThreadFunction, ctx->thread_name_buf, ctx);
925+
ctx->thread = SDL_CreateThreadInternal(SDL_HIDAPI_HapticDriverLg4ff_ThreadFunction, ctx->thread_name_buf, 64 * 1024, ctx);
926926

927927
if (ctx->product_id == USB_DEVICE_ID_LOGITECH_WHEEL &&
928928
(ctx->release_number >> 8) == 0x21 &&

0 commit comments

Comments
 (0)