mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-30 01:34:05 +00:00
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:
1 parent
2ea47752c3
commit
82e2514854
4 files changed
+14
-8
No files matched your search
+6
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user