osxcross/patches/cctools-ld64-1.patch
Thomas Pöchtrager d502ab0138 use a nifty preprocessor trick to workaround the __block issue in unistd.h
get rid of the  || exit 1  in build.sh by using  set -e
2014-03-26 20:29:50 +01:00

23 lines
423 B
Diff

--- ld64/src/3rd/helper_backup.h 2013-02-24 11:26:01.159718369 -0800
+++ ld64/src/3rd/helper.h 2013-02-24 11:27:22.107716807 -0800
@@ -1,6 +1,10 @@
#ifndef _HELPER_H
#define _HELPER_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <mach/mach_time.h>
#include <mach/mach_host.h>
#include <mach/host_info.h>
@@ -30,4 +34,8 @@
uint64_t mach_absolute_time(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif