mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-09-15 11:41:20 +03:00
* 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.
36 lines
526 B
Plaintext
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
|