diff options
author | Bruno Haible <bruno@clisp.org> | 2019-06-20 04:04:45 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-06-20 04:07:03 +0200 |
commit | 6c3d118e8303b1f2cfdf17749d39392f1340077d (patch) | |
tree | c4c31e84311c7dc5160a5aff6b9dca7b7b95278c /modules/windows-once | |
parent | 7078fef393b8d06c522c690c1fe7017596b12734 (diff) | |
download | gnulib-6c3d118e8303b1f2cfdf17749d39392f1340077d.tar.gz |
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.
Diffstat (limited to 'modules/windows-once')
-rw-r--r-- | modules/windows-once | 27 |
1 files changed, 27 insertions, 0 deletions
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 |