This commit is contained in:
2025-05-30 22:31:15 -05:00
parent 83ad0c1793
commit 9c68a1451d
2 changed files with 5 additions and 7 deletions

View File

@ -10,7 +10,7 @@ namespace Tesses::Framework::Date
{ {
int GetTimeZone() int GetTimeZone()
{ {
#if defined(__SWITCH__) || defined(_WIN32) #if defined(__SWITCH__) || defined(_WIN32) || defined(GEKKO)
return (int)(-_timezone); return (int)(-_timezone);
#else #else
return (int)(-timezone); return (int)(-timezone);
@ -18,7 +18,7 @@ namespace Tesses::Framework::Date
} }
bool TimeZoneSupportDST() bool TimeZoneSupportDST()
{ {
#if defined(__SWITCH__) || defined(_WIN32) #if defined(__SWITCH__) || defined(_WIN32) || defined(GEKKO)
return _daylight == 1; return _daylight == 1;
#else #else
return daylight == 1; return daylight == 1;

View File

@ -56,7 +56,7 @@ namespace Tesses::Framework::Threading
joinning=false; joinning=false;
hasExited=false; hasExited=false;
#if defined(GEKKO) #if defined(GEKKO)
LWP_CreateThread(&thrd, cb, static_cast<void*>(this), nullptr,12000, 98); LWP_CreateThread(&thrd, this->cb, static_cast<void*>(this), nullptr,12000, 98);
#elif defined(__SWITCH__) #elif defined(__SWITCH__)
TF_LOG("Before Thread create"); TF_LOG("Before Thread create");
Result rc = threadCreate(&thrd,this->cb, Result rc = threadCreate(&thrd,this->cb,
@ -152,10 +152,8 @@ namespace Tesses::Framework::Threading
HANDLE thrd; HANDLE thrd;
DWORD thrdId; DWORD thrdId;
public:
#elif defined(GEKKO)
lwp_t thrd;
#elif defined(__SWITCH__) || defined(GEKKO) #elif defined(__SWITCH__) || defined(GEKKO)
std::shared_ptr<NeedToBeJoinnedThread> thread; std::shared_ptr<NeedToBeJoinnedThread> thread;
#else #else