diff --git a/include/re_thread.h b/include/re_thread.h index ac81647ce..20d58010a 100644 --- a/include/re_thread.h +++ b/include/re_thread.h @@ -22,7 +22,10 @@ #else #if defined(WIN32) -struct thrd_win32; +struct thrd_win32 { + HANDLE hdl; + uint32_t id; +}; #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN diff --git a/src/thread/win32.c b/src/thread/win32.c index 9aca00f6b..3f40daaa2 100644 --- a/src/thread/win32.c +++ b/src/thread/win32.c @@ -30,10 +30,6 @@ struct thread { void *arg; }; -struct thrd_win32 { - HANDLE hdl; - uint32_t id; -}; static int dtor_register(tss_t key, tss_dtor_t dtor) {