From caea4e875d111d4361fbea2ff67778ea599cb758 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Thu, 30 May 2019 06:57:27 +0000 Subject: [PATCH] [runtimes] Use _LIBCPP_HAS_COMMENT_LIB_PRAGMA in all relevant files These two sources were omitted in r362055. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@362061 91177308-0d34-0410-b5e6-96231b3b80d8 --- src/condition_variable.cpp | 2 +- src/memory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/condition_variable.cpp b/src/condition_variable.cpp index 69264c680d..8d769f42f6 100644 --- a/src/condition_variable.cpp +++ b/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/src/memory.cpp b/src/memory.cpp index 6df7226b35..c8c00383cf 100644 --- a/src/memory.cpp +++ b/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