[gcc(refs/users/ibuclaw/heads/darwin)] libphobos: Align interface of gcc.sections.osx with gcc.sections.elf_shared
Iain Buclaw
ibuclaw@gcc.gnu.org
Fri Sep 17 14:34:16 GMT 2021
https://gcc.gnu.org/g:a2f5cd6d62f8ea06e8082487de801f55334e84a6
commit a2f5cd6d62f8ea06e8082487de801f55334e84a6
Author: Iain Buclaw <ibuclaw@gdcproject.org>
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);
+}
More information about the Gcc-cvs
mailing list