Fix compilation for 3DS (#140)

* Changes to enhance support for 3DS

* Align helpers to correct type at compile

* explicity declare/initialize operational val where used
This commit is contained in:
Christopher Madrigal authored and GitHub committed 2026-07-11 22:47:14 -05:00
1 parent 2ea47752c3
commit 82e2514854
4 files changed
+14 -8

No files matched your search

+6 -1
View File
@@ -73,6 +73,9 @@ DWORD WINAPI ThreadProc(LPVOID lpParameter) {
#elif defined(__WIIU__)
int ThreadProc(int argc, const char** argv) {
struct thread_context* ctx = (struct thread_context*)argv;
#elif defined (__3DS__)
void ThreadProc(void* context) {
struct thread_context* ctx = (struct thread_context*)context;
#else
void* ThreadProc(void* context) {
struct thread_context* ctx = (struct thread_context*)context;
@@ -90,8 +93,10 @@ void* ThreadProc(void* context) {
free(ctx);
#if defined(LC_WINDOWS) || defined(__vita__) || defined(__WIIU__) || defined(__3DS__)
#if defined(LC_WINDOWS) || defined(__vita__) || defined(__WIIU__)
return 0;
#elif defined(__3DS__)
return;
#else
return NULL;
#endif