diff --git a/Sources/Core/System/detect_cpu_ext.cpp b/Sources/Core/System/detect_cpu_ext.cpp index bc335c4cc..71499896a 100644 --- a/Sources/Core/System/detect_cpu_ext.cpp +++ b/Sources/Core/System/detect_cpu_ext.cpp @@ -32,7 +32,7 @@ namespace clan { -#if defined(ARM_PLATFORM) || defined(CL_ARM) +#if defined(ARM_PLATFORM) || defined(CL_ARM) || defined(__sun) bool System::detect_cpu_extension(CPU_ExtensionPPC ext) { throw ("Congratulations, you've just been selected to code this feature!"); diff --git a/Sources/Core/Text/string_help.cpp b/Sources/Core/Text/string_help.cpp index 08f50fd7c..f49ca1c6a 100644 --- a/Sources/Core/Text/string_help.cpp +++ b/Sources/Core/Text/string_help.cpp @@ -132,7 +132,11 @@ namespace clan return wcscmp(a.c_str(), b.c_str()); #else if (case_insensitive) + #ifdef __sun + return std::wcscasecmp(a.c_str(), b.c_str()); + #else return wcscasecmp(a.c_str(), b.c_str()); + #endif else return wcscmp(a.c_str(), b.c_str()); #endif