Skip to content

Commit c75fc16

Browse files
committed
🚨 Clang being a butt again
1 parent d10a2e0 commit c75fc16

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

include/ztd/thread/threads.native.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,6 @@ ZTD_USE(ZTD_THREAD_API_LINKAGE)
107107
/// @brief The null id value, which represents an invalid id.
108108
const ztdc_thrd_id_t ztdc_thrd_null_id;
109109

110-
ZTD_USE(ZTD_C_LANGUAGE_LINKAGE)
111-
ZTD_USE(ZTD_THREAD_API_LINKAGE)
112-
/// @brief Returns the native handle out of the current thread.
113-
///
114-
/// @return The native "handle" object which represents this thread. May be an invalid sentinel type if it can't fetch
115-
/// it properly.
116-
ztdc_thrd_native_handle_t ztdc_thrd_current_native_handle();
117-
118110
ZTD_USE(ZTD_C_LANGUAGE_LINKAGE)
119111
ZTD_USE(ZTD_THREAD_API_LINKAGE)
120112
/// @brief Returns the native handle out of `__thr`.
@@ -126,6 +118,14 @@ ZTD_USE(ZTD_THREAD_API_LINKAGE)
126118
/// properly.
127119
ztdc_thrd_native_handle_t ztdc_thrd_native_handle(thrd_t __thr);
128120

121+
ZTD_USE(ZTD_C_LANGUAGE_LINKAGE)
122+
ZTD_USE(ZTD_THREAD_API_LINKAGE)
123+
/// @brief Returns the native handle out of the current thread.
124+
///
125+
/// @return The native "handle" object which represents this thread. May be an invalid sentinel type if it can't fetch
126+
/// it properly.
127+
ztdc_thrd_native_handle_t ztdc_thrd_current_native_handle(void);
128+
129129
ZTD_USE(ZTD_C_LANGUAGE_LINKAGE)
130130
ZTD_USE(ZTD_THREAD_API_LINKAGE)
131131
/// @brief Returns the native id out of `__thr`.
@@ -141,6 +141,6 @@ ZTD_USE(ZTD_THREAD_API_LINKAGE)
141141
/// @brief Returns the native id out of the current thread.
142142
///
143143
/// @return The native "ID" object which represents this thread. May be an invalid sentinel type if this.
144-
ztdc_thrd_id_t ztdc_thrd_current_id();
144+
ztdc_thrd_id_t ztdc_thrd_current_id(void);
145145

146146
#endif

source/ztd/thread/threads.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ int ztdc_thrd_create_attrs_err(thrd_t* __thr, thrd_start_t __func, void* __func_
116116

117117
ZTD_USE(ZTD_C_LANGUAGE_LINKAGE)
118118
ZTD_USE(ZTD_THREAD_API_LINKAGE)
119-
ztdc_thrd_native_handle_t ztdc_thrd_current_native_handle() {
119+
ztdc_thrd_native_handle_t ztdc_thrd_current_native_handle(void) {
120120
#if ZTD_IS_ON(ZTD_THREAD_PTHREAD_BASED)
121121
return (ztdc_thrd_native_handle_t)thrd_current();
122122
#elif ZTD_IS_ON(ZTD_THREAD_ANY_WIN32_BASED)
@@ -147,7 +147,7 @@ ztdc_thrd_native_handle_t ztdc_thrd_native_handle(thrd_t __thr) {
147147

148148
ZTD_USE(ZTD_C_LANGUAGE_LINKAGE)
149149
ZTD_USE(ZTD_THREAD_API_LINKAGE)
150-
ztdc_thrd_id_t ztdc_thrd_current_id() {
150+
ztdc_thrd_id_t ztdc_thrd_current_id(void) {
151151
// what the fuck is going on, lol.
152152
#if ZTD_IS_ON(ZTD_THREAD_ANY_WIN32_BASED)
153153
thrd_t __thr = thrd_current();

0 commit comments

Comments
 (0)