summaryrefslogtreecommitdiffstats
path: root/gl/windows-once.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/windows-once.h')
-rw-r--r--gl/windows-once.h7
1 files changed, 4 insertions, 3 deletions
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 @@
1/* Once-only control (native Windows implementation). 1/* Once-only control (native Windows implementation).
2 Copyright (C) 2005-2024 Free Software Foundation, Inc. 2 Copyright (C) 2005-2025 Free Software Foundation, Inc.
3 3
4 This file is free software: you can redistribute it and/or modify 4 This file is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as 5 it under the terms of the GNU Lesser General Public License as
@@ -25,13 +25,14 @@
25 25
26typedef struct 26typedef struct
27 { 27 {
28 volatile int inited; 28 volatile LONG inited;
29 volatile LONG num_threads;
29 volatile LONG started; 30 volatile LONG started;
30 CRITICAL_SECTION lock; 31 CRITICAL_SECTION lock;
31 } 32 }
32 glwthread_once_t; 33 glwthread_once_t;
33 34
34#define GLWTHREAD_ONCE_INIT { -1, -1 } 35#define GLWTHREAD_ONCE_INIT { -1, 0, -1 }
35 36
36#ifdef __cplusplus 37#ifdef __cplusplus
37extern "C" { 38extern "C" {