]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
mythread.h: Fix typo error in Vista threads mythread_once().
authorJamaika1 <lukaszcz18@wp.pl>
Tue, 8 Aug 2023 12:07:59 +0000 (14:07 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2023 12:07:59 +0000 (20:07 +0800)
The "once_" variable was accidentally referred to as just "once". This
prevented building with Vista threads when
HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR was not defined.

src/common/mythread.h

index 1cce50e9fd857908bfc536ea2160f26cf0c8b8a7..4495e017b290926ea72b19f5f78abc924662a8d7 100644 (file)
@@ -378,7 +378,7 @@ typedef struct {
                        abort(); \
                if (pending_) { \
                        func(); \
-                       if (!InitOnceComplete(&once, 0, NULL)) \
+                       if (!InitOnceComplete(&once_, 0, NULL)) \
                                abort(); \
                } \
        } while (0)