Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Commit

Permalink
[runtimes] Use _LIBCPP_HAS_COMMENT_LIB_PRAGMA in all relevant files
Browse files Browse the repository at this point in the history
These two sources were omitted in r362055.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@362061 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
petrhosek committed May 30, 2019
1 parent 12ec3ac commit caea4e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/condition_variable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit caea4e8

Please sign in to comment.