[build, cmake] port to solaris (#96)

Co-authored-by: crueter <crueter@eden-emu.dev>
Reviewed-on: eden-emu/eden#96
Co-authored-by: lizzie <lizzie@eden-emu.dev>
Co-committed-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie 2025-07-23 10:00:29 +02:00 committed by crueter
parent 23c77a0d4f
commit e1763a726e
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
16 changed files with 215 additions and 76 deletions

View file

@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
/*
Minimal asymmetric stackful cross-platform coroutine library in pure C.
minicoro - v0.2.0 - 15/Nov/2023
@ -467,7 +470,7 @@ extern "C" {
#ifdef MCO_NO_MULTITHREAD
#define MCO_THREAD_LOCAL
#else
#ifdef thread_local
#if defined(thread_local) || __STDC_VERSION__ >= 202311L || defined(__sun__)
#define MCO_THREAD_LOCAL thread_local
#elif __STDC_VERSION__ >= 201112 && !defined(__STDC_NO_THREADS__)
#define MCO_THREAD_LOCAL _Thread_local