[OpenWrt-Devel] [PATCH] gcc: add a darwin-compatibility patch for ansidecl.h

Lawrence D'Anna larry at elder-gods.org
Tue Jul 21 01:58:41 EDT 2015


Sorry!   disregard this patch please.

The problem I was seeing had nothing to do with Xcode.   It was because Homebrew’s binutils
had installed its own ansidecl.h which was being used instead of the ansidecl.h that came with 
the gcc sources.

> On Jul 19, 2015, at 6:52 PM, Lawrence D'Anna <larry at elder-gods.org> wrote:
> 
> ansidecl.h is using _ANSIDECL_H as it's guard #ifdef.  But names that start with
> underscore are reserved, and the latest version of Xcode seems to be exercising
> its prerogative to define _ANSIDECL_H.
> 
> Signed-off-by: Lawrence D'Anna <larry at elder-gods.org>
> ---
> toolchain/gcc/patches/4.8-linaro/999-ansidecl-h.patch | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
> create mode 100644 toolchain/gcc/patches/4.8-linaro/999-ansidecl-h.patch
> 
> diff --git a/toolchain/gcc/patches/4.8-linaro/999-ansidecl-h.patch b/toolchain/gcc/patches/4.8-linaro/999-ansidecl-h.patch
> new file mode 100644
> index 0000000..d7267b3
> --- /dev/null
> +++ b/toolchain/gcc/patches/4.8-linaro/999-ansidecl-h.patch
> @@ -0,0 +1,13 @@
> +--- a/include/ansidecl.h
> ++++ b/include/ansidecl.h
> +@@ -112,8 +112,8 @@ Foundation, Inc., 51 Franklin Street - F
> +    CONST, VOLATILE, SIGNED, PROTO, EXFUN, DEFUN, DEFUN_VOID,
> +    AND, DOTS, NOARGS.  Don't use them.  */
> + 
> +-#ifndef	_ANSIDECL_H
> +-#define _ANSIDECL_H	1
> ++#ifndef	ANSIDECL_H
> ++#define ANSIDECL_H	1
> + 
> + #ifdef __cplusplus
> + extern "C" {
> -- 
> 2.3.8 (Apple Git-58)
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4107 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150720/572ce356/attachment.p7s>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list