1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-09-15 11:41:20 +03:00
Files
gnulib/modules/call_once
Bruno Haible 9eeae87d68 call_once: Work around Cygwin 3.5.3 bug.
* m4/call_once.m4 (gl_FUNC_CALL_ONCE): Require AC_CANONICAL_HOST.
On Cygwin, set REPLACE_CALL_ONCE to 1.
* lib/call_once.c (call_once): On Cygwin, use a cast, to avoid a
compiler warning.
* modules/call_once (Depends-on): Add pthread-once.
* doc/posix-functions/call_once.texi: Mention the Cygwin bug.
2024-05-30 10:55:40 +02:00

36 lines
526 B
Plaintext

Description:
call_once() function: ISO C 11 once-only initialization.
Files:
lib/call_once.c
m4/call_once.m4
Depends-on:
threads-h
pthread-once
windows-once
configure.ac:
AC_REQUIRE([gl_THREADS_H])
gl_FUNC_CALL_ONCE
gl_CONDITIONAL([GL_COND_OBJ_CALL_ONCE],
[test $HAVE_THREADS_H = 0 || test $REPLACE_CALL_ONCE = 1])
gl_THREADS_MODULE_INDICATOR([call_once])
Makefile.am:
if GL_COND_OBJ_CALL_ONCE
lib_SOURCES += call_once.c
endif
Include:
<threads.h>
Link:
$(LIBSTDTHREAD)
License:
LGPLv2+
Maintainer:
all