File tree 16 files changed +16
-16
lines changed 16 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 10
10
#include " random"
11
11
#ifndef _LIBCPP_HAS_NO_THREADS
12
12
#include " mutex"
13
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
13
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
14
14
#pragma comment(lib, "pthread")
15
15
#endif
16
16
#endif
Original file line number Diff line number Diff line change 37
37
#endif
38
38
#endif
39
39
40
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
40
+ #if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
41
41
#pragma comment(lib, "rt")
42
42
#endif
43
43
Original file line number Diff line number Diff line change 15
15
#include " system_error"
16
16
#include " __undef_macros"
17
17
18
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
18
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
19
19
#pragma comment(lib, "pthread")
20
20
#endif
21
21
Original file line number Diff line number Diff line change 15
15
#include " __hash_table"
16
16
#ifndef _LIBCPP_HAS_NO_THREADS
17
17
#include " mutex"
18
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
18
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
19
19
#pragma comment(lib, "pthread")
20
20
#endif
21
21
#endif
Original file line number Diff line number Diff line change 12
12
#include " atomic"
13
13
#elif !defined(_LIBCPP_HAS_NO_THREADS)
14
14
#include " mutex"
15
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
15
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
16
16
#pragma comment(lib, "pthread")
17
17
#endif
18
18
#endif
Original file line number Diff line number Diff line change 44
44
#include < sys/time.h> // for gettimeofday and timeval
45
45
#endif // !defined(CLOCK_REALTIME)
46
46
47
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
47
+ #if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
48
48
#pragma comment(lib, "rt")
49
49
#endif
50
50
Original file line number Diff line number Diff line change 10
10
#ifndef _LIBCPP_HAS_NO_THREADS
11
11
#include " mutex"
12
12
#include " thread"
13
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
13
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
14
14
#pragma comment(lib, "pthread")
15
15
#endif
16
16
#endif
Original file line number Diff line number Diff line change 13
13
#include " __undef_macros"
14
14
15
15
#ifndef _LIBCPP_HAS_NO_THREADS
16
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
16
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
17
17
#pragma comment(lib, "pthread")
18
18
#endif
19
19
#endif
Original file line number Diff line number Diff line change 10
10
#ifndef _LIBCPP_HAS_NO_THREADS
11
11
12
12
#include " shared_mutex"
13
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
13
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
14
14
#pragma comment(lib, "pthread")
15
15
#endif
16
16
Original file line number Diff line number Diff line change 35
35
#include < windows.h>
36
36
#endif
37
37
38
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
38
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA)
39
39
#pragma comment(lib, "pthread")
40
40
#endif
41
41
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ extern "C" {
46
46
#include " abort_message.h"
47
47
#include " fallback_malloc.h"
48
48
49
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCXXABI_HAS_COMMENT_LIB_PRAGMA)
49
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCXXABI_HAS_COMMENT_LIB_PRAGMA)
50
50
#pragma comment(lib, "pthread")
51
51
#endif
52
52
Original file line number Diff line number Diff line change 50
50
#include < stdlib.h>
51
51
#include < __threading_support>
52
52
#ifndef _LIBCXXABI_HAS_NO_THREADS
53
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCXXABI_HAS_COMMENT_LIB_PRAGMA)
53
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCXXABI_HAS_COMMENT_LIB_PRAGMA)
54
54
#pragma comment(lib, "pthread")
55
55
#endif
56
56
#endif
Original file line number Diff line number Diff line change 10
10
#include " cxxabi.h"
11
11
#include < __threading_support>
12
12
#ifndef _LIBCXXABI_HAS_NO_THREADS
13
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCXXABI_HAS_COMMENT_LIB_PRAGMA)
13
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCXXABI_HAS_COMMENT_LIB_PRAGMA)
14
14
#pragma comment(lib, "pthread")
15
15
#endif
16
16
#endif
Original file line number Diff line number Diff line change 13
13
14
14
#include < __threading_support>
15
15
#ifndef _LIBCXXABI_HAS_NO_THREADS
16
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBCXXABI_HAS_COMMENT_LIB_PRAGMA)
16
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCXXABI_HAS_COMMENT_LIB_PRAGMA)
17
17
#pragma comment(lib, "pthread")
18
18
#endif
19
19
#endif
Original file line number Diff line number Diff line change 27
27
28
28
#if _LIBUNWIND_USE_DLADDR
29
29
#include < dlfcn.h>
30
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBUNWIND_HAS_COMMENT_LIB_PRAGMA)
30
+ #if defined(__unix__) && defined(__ELF__) && defined(_LIBUNWIND_HAS_COMMENT_LIB_PRAGMA)
31
31
#pragma comment(lib, "dl")
32
32
#endif
33
33
#endif
Original file line number Diff line number Diff line change 17
17
#include < windows.h>
18
18
#elif !defined(_LIBUNWIND_HAS_NO_THREADS)
19
19
#include < pthread.h>
20
- #if defined(__unix__) && defined(__ELF__) && defined(_LIBUNWIND_HAS_COMMENT_LIB_PRAGMA)
20
+ #if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBUNWIND_HAS_COMMENT_LIB_PRAGMA)
21
21
#pragma comment(lib, "pthread")
22
22
#endif
23
23
#endif
You can’t perform that action at this time.
0 commit comments