From a9a8cf8d337470bb9b4466aea9593df7f5fac776 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 6 Oct 2019 20:17:27 +0200 Subject: Implicit cast to larger size, number suffix for number bitsize --- src/std/thread.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/std') diff --git a/src/std/thread.c b/src/std/thread.c index 9b9b764..8c6d93a 100644 --- a/src/std/thread.c +++ b/src/std/thread.c @@ -174,7 +174,9 @@ void amal_mutex_tryunlock(amal_mutex *self) { } bool amal_thread_is_main(void) { - /* TODO: This only works for linux, use equivalent functions on other platforms */ +#ifndef __linux__ +#error Fix this for non-linux platforms! +#endif return amal_thread_get_id() == amal_process_get_id(); } -- cgit v1.2.3