Files
macports-ports/devel/cctools/files/ld64-512-work-around-older-compilers-without-has-include.diff
Ken CunninghamandKen 45621bb9da cctools: bump to 949.0.1
correlates with xcode 11.3.1

remove rsrc fork stripping workaround
there don't seem to be rsrc forks in cctools any longer

fix build with older SDKs and older compilers
various minor workarounds to allow build with SDKs < 10.12
and with older compilers that don't support __has_include

closes: https://trac.macports.org/ticket/58749
closes: https://trac.macports.org/ticket/61133
2021-01-27 18:43:02 -08:00

14 lines
374 B
Diff

--- src/abstraction/MachOFileAbstraction.hpp.orig 2020-04-22 18:23:23.000000000 -0700
+++ src/abstraction/MachOFileAbstraction.hpp 2020-04-22 18:38:47.000000000 -0700
@@ -79,6 +79,10 @@
#define N_COLD_FUNC 0x0400
#endif
+#ifndef __has_include
+#define __has_include(x) 0
+#endif
+
#if __has_include(<mach-o/fixup-chains2.h>)
#include <mach-o/fixup-chains.h>
#else