Fix pthread init and null for C++

This commit is contained in:
Wildan M
2026-06-04 00:38:58 +07:00
parent e2218c53d3
commit 6acf560ed0
10 changed files with 78 additions and 8 deletions
+2
View File
@@ -15,7 +15,9 @@ after_includes = """
#include <bits/timespec.h> // for timespec
#include <bits/pthread.h> // for pthread-related types
#ifndef __cplusplus
#define thread_local _Thread_local
#endif
#define ONCE_FLAG_INIT PTHREAD_ONCE_INIT // once_flag == pthread_once_t
"""