mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
Avoid warnings about unsupported clang::weak_import w/ GCC on macOS
This commit is contained in:
parent
912421f1cb
commit
80610addf8
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ char *tparm_solaris_kludge(char *str, long p1 = 0, long p2 = 0, long p3 = 0, lon
|
|||
///
|
||||
/// On other platforms, use what's detected at build time.
|
||||
#if __APPLE__
|
||||
#if __DARWIN_C_LEVEL >= 200809L
|
||||
#if __DARWIN_C_LEVEL >= 200809L && __has_attribute(clang::weak_import)
|
||||
// We have to explicitly redeclare these as weak,
|
||||
// since we are forced to set the MIN_REQUIRED availability macro to 10.7
|
||||
// to use libc++, which in turn exposes these as strong
|
||||
|
|
Loading…
Reference in a new issue