From b0afb8fe0ff1d87165af9df61501197a06240dda Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Sun, 28 Dec 2025 12:13:40 +0100 Subject: Sync with Gnulib stable-202507 code (a8ac9f9ce5) --- gl/windows-once.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gl/windows-once.h') diff --git a/gl/windows-once.h b/gl/windows-once.h index c5bbcd57..b27ae538 100644 --- a/gl/windows-once.h +++ b/gl/windows-once.h @@ -1,5 +1,5 @@ /* Once-only control (native Windows implementation). - Copyright (C) 2005-2024 Free Software Foundation, Inc. + Copyright (C) 2005-2025 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -25,13 +25,14 @@ typedef struct { - volatile int inited; + volatile LONG inited; + volatile LONG num_threads; volatile LONG started; CRITICAL_SECTION lock; } glwthread_once_t; -#define GLWTHREAD_ONCE_INIT { -1, -1 } +#define GLWTHREAD_ONCE_INIT { -1, 0, -1 } #ifdef __cplusplus extern "C" { -- cgit v1.2.3-74-g34f1