Fixed problem in GetOS,Now it works!!!

This commit is contained in:
Rabia Alhaffar 2020-06-11 21:43:08 +03:00 committed by GitHub
parent 786263fa8b
commit d39c932066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1176,22 +1176,22 @@ void SetClipboardText(const char *text)
// Get current operating system used // Get current operating system used
void GetOS() void GetOS()
{ {
#ifdef _WIN16 || _WIN32 || _WIN64 #ifdef _WIN32 || _WIN64
return "Windows" return "Windows";
#elif __MACH__ || TARGET_OS_MAC #elif __MACH__ || TARGET_OS_MAC
return "OSX" return "OSX";
#elif __linux__ #elif __linux__
return "Linux" return "Linux";
#elif __unix__ #elif __unix__
return "Unix" return "Unix";
#elif __ANDROID__ #elif __ANDROID__
return "Android" return "Android";
#elif TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR || TARGET_OS_EMBEDDED #elif TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR || TARGET_OS_EMBEDDED
return "iOS" return "iOS";
#elif __sun #elif __sun
return "Solaris" return "Solaris";
#elif BSD #elif BSD
return "BSD" return "BSD";
#endif #endif
} }