mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] [PATCH] Fix error "expected ', ' or '...' bef


From: Hamza Alloush
Subject: Re: [Mingw-cross-env-list] [PATCH] Fix error "expected ', ' or '...' before 'FileName'" in src-IL/include/il_internal.h
Date: Thu, 30 Apr 2015 14:17:06 +0000


----------------------------------------
> From: address@hidden
> To: address@hidden
> CC: address@hidden; address@hidden
> Subject: [PATCH] Fix error "expected ',' or '...' before 'FileName'" in 
> src-IL/include/il_internal.h
> Date: Thu, 30 Apr 2015 15:22:20 +0200
>
> Signed-off-by: Stefan Peter <address@hidden>
> ---
>
> Notes:
> This patch was shamlessly lifted from
> http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/devel/devIL/patches/patch-include_IL_il.h
> where this problem seems to be known (and fixed)
> since 2012.
>
> diff --git a/src/devil-2-il_h.patch b/src/devil-2-il_h.patch
> new file mode 100644
> index 0000000..6b14552
> --- /dev/null
> +++ b/src/devil-2-il_h.patch
> @@ -0,0 +1,14 @@
> +This file is part of MXE.
> +See index.html for further information.
> +
> +--- devil-1.7.8.org/include/IL/il.h 2009-03-08 08:10:08.000000000 +0100
> ++++ devil-1.7.8/include/IL/il.h 2015-04-30 14:48:41.473762419 +0200
> +@@ -63,7 +63,7 @@
> + #endif
> + #endif
> +
> +-#ifdef RESTRICT_KEYWORD
> ++#if defined(RESTRICT_KEYWORD) && !defined(__cplusplus)
> + #define RESTRICT restrict
> + #define CONST_RESTRICT const restrict
> + #else
> --
> 1.9.1
>

patch tested and works against Wheezy 7.8 with master, 'devil' compiles just 
fine now.

Thanks
Hamza
                                          


reply via email to

[Prev in Thread] Current Thread [Next in Thread]