Skip to content

Commit aa24f38

Browse files
committed
Using macro instead of HC_PLATFORM
1 parent 39bc60a commit aa24f38

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Include/httpClient/pal.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ enum class HCWebSocketCloseStatus : uint32_t
498498

499499
// On some platforms, std::mutex default construction creates named mutexes which have a low
500500
// system-wide limit. DefaultUnnamedMutex forces unnamed mutex construction on affected platforms.
501-
#if HC_PLATFORM == HC_PLATFORM_SONY_PLAYSTATION_5
501+
// Define HC_USE_UNNAMED_MUTEX in your platform build props to enable the workaround.
502+
#if defined(HC_USE_UNNAMED_MUTEX)
502503
class DefaultUnnamedMutex : public std::mutex
503504
{
504505
public:

0 commit comments

Comments
 (0)