From 6c3d118e8303b1f2cfdf17749d39392f1340077d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 20 Jun 2019 04:04:45 +0200 Subject: windows-once: New module. * lib/windows-once.h: New file, extracted from lib/glthread/lock.h. * lib/windows-once.c: New file, extracted from lib/glthread/lock.c. * lib/glthread/lock.h: Include windows-once.h. (gl_once_t): Define using glwthread_once_t. (gl_once_define): Define using GLWTHREAD_ONCE_INIT. (glthread_once): Define using glwthread_once. (glthread_once_func): Remove declaration. * lib/glthread/lock.c (glthread_once_func): Remove function. * modules/windows-once: New file. * modules/lock (Depends-on): Add windows-once. --- modules/windows-once | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 modules/windows-once (limited to 'modules/windows-once') diff --git a/modules/windows-once b/modules/windows-once new file mode 100644 index 0000000000..34d5b1e3bd --- /dev/null +++ b/modules/windows-once @@ -0,0 +1,27 @@ +Description: +Once-only control (native Windows implementation). + +Files: +lib/windows-once.h +lib/windows-once.c + +Depends-on: + +configure.ac: +AC_REQUIRE([AC_CANONICAL_HOST]) +case "$host_os" in + mingw*) + AC_LIBOBJ([windows-once]) + ;; +esac + +Makefile.am: + +Include: +"windows-once.h" + +License: +LGPLv2+ + +Maintainer: +all -- cgit v1.2.1