1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

mythread.h: Fix typo error in Vista threads mythread_once().

The "once_" variable was accidentally referred to as just "once". This
prevented building with Vista threads when
HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR was not defined.
This commit is contained in:
Jamaika1 2023-08-08 14:07:59 +02:00 committed by GitHub
parent 80cb961e53
commit 6bf33b704c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -378,7 +378,7 @@ typedef struct {
abort(); \
if (pending_) { \
func(); \
if (!InitOnceComplete(&once, 0, NULL)) \
if (!InitOnceComplete(&once_, 0, NULL)) \
abort(); \
} \
} while (0)