We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5bf3b7 commit 3cf7d5bCopy full SHA for 3cf7d5b
test/test_sync.cpp
@@ -6,7 +6,8 @@
6
7
#include "test.h"
8
9
-#if defined(__linux__) || defined(__linux)
+#include "libipc/platform/detail.h"
10
+#if defined(IPC_OS_LINUX_)
11
#include <pthread.h>
12
#include <time.h>
13
@@ -31,8 +32,7 @@ TEST(PThread, Robust) {
31
32
pthread_mutex_unlock(&mutex);
33
pthread_mutex_destroy(&mutex);
34
}
-#elif defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || \
35
- defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
+#elif defined(IPC_OS_WINDOWS_)
36
#include <Windows.h>
37
#include <tchar.h>
38
@@ -48,7 +48,7 @@ TEST(PThread, Robust) {
48
49
CloseHandle(lock);
50
51
-#endif // !__linux__
+#endif // OS
52
53
#include "libipc/mutex.h"
54
0 commit comments