From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id DFCA73858439; Wed, 13 Oct 2021 08:30:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFCA73858439 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/iains/heads/d-for-darwin)] libphobos: Align interface of gcc.sections.osx with gcc.sections.elf_shared X-Act-Checkin: gcc X-Git-Author: Iain Buclaw X-Git-Refname: refs/users/iains/heads/d-for-darwin X-Git-Oldrev: 5a4be72ce6dc8a6f0f332c0825a6615db6d5e0b4 X-Git-Newrev: 97d81400cd87690d429a2444fb50c75b6d153147 Message-Id: <20211013083049.DFCA73858439@sourceware.org> Date: Wed, 13 Oct 2021 08:30:49 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2021 08:30:50 -0000 https://gcc.gnu.org/g:97d81400cd87690d429a2444fb50c75b6d153147 commit 97d81400cd87690d429a2444fb50c75b6d153147 Author: Iain Buclaw Date: Mon Dec 7 01:25:17 2020 +0100 libphobos: Align interface of gcc.sections.osx with gcc.sections.elf_shared Diff: --- libphobos/libdruntime/core/sys/darwin/execinfo.d | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libphobos/libdruntime/core/sys/darwin/execinfo.d b/libphobos/libdruntime/core/sys/darwin/execinfo.d index c929cc2f88d..d9607f392eb 100644 --- a/libphobos/libdruntime/core/sys/darwin/execinfo.d +++ b/libphobos/libdruntime/core/sys/darwin/execinfo.d @@ -21,6 +21,11 @@ extern (C): nothrow: @nogc: -int backtrace(void** buffer, int size); -char** backtrace_symbols(const(void*)* buffer, int size); -void backtrace_symbols_fd(const(void*)* buffer, int size, int fd); +import core.sys.darwin.config; + +static if (__traits(getTargetInfo, "osxVersionMin") >= __MAC_10_5) +{ + int backtrace(void** buffer, int size); + char** backtrace_symbols(const(void*)* buffer, int size); + void backtrace_symbols_fd(const(void*)* buffer, int size, int fd); +}