diff options
author | David Robillard <d@drobilla.net> | 2022-08-18 17:14:16 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-18 17:14:16 -0400 |
commit | 35c7e80281ff6079b6e89dd421addd0a5f6b8b2c (patch) | |
tree | c0a6071c8872a79cb4e8670a5845c7b434e557e3 /include | |
parent | 4b6cd5239ce102fcb89837195ab47943981a70f5 (diff) | |
download | zix-35c7e80281ff6079b6e89dd421addd0a5f6b8b2c.tar.gz zix-35c7e80281ff6079b6e89dd421addd0a5f6b8b2c.tar.bz2 zix-35c7e80281ff6079b6e89dd421addd0a5f6b8b2c.zip |
Fix thread function attributes on Windows
Diffstat (limited to 'include')
-rw-r--r-- | include/zix/thread.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/zix/thread.h b/include/zix/thread.h index 29dee44..9c213de 100644 --- a/include/zix/thread.h +++ b/include/zix/thread.h @@ -27,7 +27,7 @@ extern "C" { #ifdef _WIN32 # define ZIX_THREAD_RESULT 0 -# define ZIX_THREAD_FUNC __attribute__((stdcall)) +# define ZIX_THREAD_FUNC __stdcall typedef HANDLE ZixThread; typedef DWORD ZixThreadResult; @@ -51,8 +51,7 @@ typedef void* ZixThreadResult; "Returning" a result, and communicating with the parent thread in general, can be done through the pointer argument. */ -typedef ZIX_THREAD_FUNC -ZixThreadResult (*ZixThreadFunc)(void*); +typedef ZixThreadResult(ZIX_THREAD_FUNC* ZixThreadFunc)(void*); /** Initialize `thread` to a new thread. |