thread/Id: drop "::" prefix before pthread function names

The "::" to explicitly refer to the global namespace appeared like a
good idea in C++, but it breaks with C libraries that implement
standard functions using macros (e.g. musl).
This commit is contained in:
Max Kellermann 2014-12-08 14:17:17 +01:00
parent dc11dea7cc
commit d8fc2db910
2 changed files with 3 additions and 2 deletions

1
NEWS
View File

@ -1,4 +1,5 @@
ver 0.18.20 (not yet released)
* fix build failure with musl
ver 0.18.19 (2014/11/26)
* archive

View File

@ -75,7 +75,7 @@ public:
#ifdef WIN32
return ::GetCurrentThreadId();
#else
return ::pthread_self();
return pthread_self();
#endif
}
@ -84,7 +84,7 @@ public:
#ifdef WIN32
return id == other.id;
#else
return ::pthread_equal(id, other.id);
return pthread_equal(id, other.id);
#endif
}