summaryrefslogtreecommitdiff
path: root/test/guard_test_basic.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/guard_test_basic.pass.cpp')
-rw-r--r--test/guard_test_basic.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/guard_test_basic.pass.cpp b/test/guard_test_basic.pass.cpp
index 5f1576d..b0dd41f 100644
--- a/test/guard_test_basic.pass.cpp
+++ b/test/guard_test_basic.pass.cpp
@@ -129,7 +129,7 @@ int main() {
#if defined(__APPLE__) || defined(__linux__)
assert(PlatformThreadID);
#endif
- if (+PlatformThreadID) {
+ if (PlatformSupportsThreadID()) {
assert(PlatformThreadID() != 0);
assert(PlatformThreadID() == PlatformThreadID());
}