diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-10-03 13:07:21 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-10-03 13:07:21 -0400 |
commit | a96ddeb7dc528d29d05f52a9b8857b2f8924fddc (patch) | |
tree | e2a9f86399f4b5da48a27e94d8b10812e63569f7 /src/xregex.c | |
parent | 9b1ee97d13985f42b09f02c8a25459a910004eb5 (diff) | |
download | bfs-a96ddeb7dc528d29d05f52a9b8857b2f8924fddc.tar.xz |
thread: s/call_once/invoke_once/
call_once() is a reserved identifier from C11.
Diffstat (limited to 'src/xregex.c')
-rw-r--r-- | src/xregex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xregex.c b/src/xregex.c index b9c04bf..87b692e 100644 --- a/src/xregex.c +++ b/src/xregex.c @@ -107,7 +107,7 @@ static void bfs_onig_once(void) { /** Initialize Oniguruma. */ static int bfs_onig_initialize(OnigEncoding *enc) { static pthread_once_t once = PTHREAD_ONCE_INIT; - call_once(&once, bfs_onig_once); + invoke_once(&once, bfs_onig_once); *enc = bfs_onig_enc; return bfs_onig_status; |