We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9366b0 commit f315e1fCopy full SHA for f315e1f
ixwebsocket/IXSetThreadName.cpp
@@ -15,6 +15,10 @@
15
#include <pthread_np.h>
16
#endif
17
18
+#ifdef __APPLE__
19
+#include <AvailabilityMacros.h>
20
+#endif
21
+
22
// Windows
23
#ifdef _WIN32
24
#include <windows.h>
@@ -58,7 +62,7 @@ namespace ix
58
62
59
63
void setThreadName(const std::string& name)
60
64
{
61
-#if defined(__APPLE__)
65
+#if defined(__APPLE__) && (MAC_OS_X_VERSION_MIN_REQUIRED >= 1060)
66
//
67
// Apple reserves 16 bytes for its thread names
68
// Notice that the Apple version of pthread_setname_np
0 commit comments