Skip to content

Commit

Permalink
Solaris compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rombust committed Oct 2, 2020
1 parent c54aaed commit 6846eb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Core/System/detect_cpu_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand Down
4 changes: 4 additions & 0 deletions Sources/Core/Text/string_help.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6846eb9

Please sign in to comment.