Got it working on Windows using Mingw

This commit is contained in:
2024-12-29 21:44:33 -06:00
parent 5b89d8c5de
commit f1bae988c4
15 changed files with 139 additions and 33 deletions

View File

@ -1,5 +1,7 @@
#pragma once
#if defined(GEKKO)
#if defined(_WIN32)
#include <windows.h>
#elif defined(GEKKO)
#include <ogc/mutex.h>
#else
#include <threads.h>
@ -7,7 +9,9 @@
namespace Tesses::Framework::Threading
{
class Mutex {
#if defined(GEKKO)
#if defined(_WIN32)
HANDLE mtx;
#elif defined(GEKKO)
mutex_t mtx;
#else
mtx_t mtx;