diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-10-06 20:17:27 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | a9a8cf8d337470bb9b4466aea9593df7f5fac776 (patch) | |
tree | 22c197c8217cd216e58f8a47a6820d96ff279138 /src/std | |
parent | fa03e7d230f2625c384ca9a7c314b6d05ab44e70 (diff) |
Implicit cast to larger size, number suffix for number bitsize
Diffstat (limited to 'src/std')
-rw-r--r-- | src/std/thread.c | 4 |
1 files changed, 3 insertions, 1 deletions
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(); } |