diff options
author | Petr Hosek <phosek@chromium.org> | 2019-05-30 06:57:27 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2019-05-30 06:57:27 +0000 |
commit | b19977d5afbff801b3228d89b14147397a935ffe (patch) | |
tree | 511c81a30dfcd92323b0ad46844893bca357086b /libcxx/src | |
parent | a807495fd1907a6ec424e797621c00e4cbeb522e (diff) | |
download | bcm5719-llvm-b19977d5afbff801b3228d89b14147397a935ffe.tar.gz bcm5719-llvm-b19977d5afbff801b3228d89b14147397a935ffe.zip |
[runtimes] Use _LIBCPP_HAS_COMMENT_LIB_PRAGMA in all relevant files
These two sources were omitted in r362055.
llvm-svn: 362061
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/condition_variable.cpp | 2 | ||||
-rw-r--r-- | libcxx/src/memory.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/condition_variable.cpp b/libcxx/src/condition_variable.cpp index 69264c680d9..8d769f42f6f 100644 --- a/libcxx/src/condition_variable.cpp +++ b/libcxx/src/condition_variable.cpp @@ -15,7 +15,7 @@ #include "system_error" #include "__undef_macros" -#if defined(__unix__) && defined(__ELF__) && defined(__clang__) +#if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA) #pragma comment(lib, "pthread") #endif diff --git a/libcxx/src/memory.cpp b/libcxx/src/memory.cpp index 6df7226b357..c8c00383cf9 100644 --- a/libcxx/src/memory.cpp +++ b/libcxx/src/memory.cpp @@ -10,7 +10,7 @@ #ifndef _LIBCPP_HAS_NO_THREADS #include "mutex" #include "thread" -#if defined(__unix__) && defined(__ELF__) && defined(__clang__) +#if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA) #pragma comment(lib, "pthread") #endif #endif |