Fix build with newer mingw versions
[gpg4win.git] / patches / libtasn1-2.14 / gnulib-mingw-w64-fix.patch
1 #! /bin/sh
2 patch -p1 -l -f $* < $0
3 exit $?
4
5 2014-08-04  Andre Heinecke  <aheinecke@intevation.de>
6
7     Apply gnulib commit 8672534
8     * gl/msvc-inval.c: Use __cdecl instead of cdecl
9
10
11 diff -ru libtasn1-2.14.orig/gl/msvc-inval.c libtasn1-2.14/gl/msvc-inval.c
12 --- libtasn1-2.14.orig/gl/msvc-inval.c  2014-08-04 20:41:03.938286457 +0200
13 +++ libtasn1-2.14/gl/msvc-inval.c       2014-08-04 20:41:40.138286520 +0200
14 @@ -28,7 +28,7 @@
15
16  # if MSVC_INVALID_PARAMETER_HANDLING == DEFAULT_HANDLING
17
18 -static void cdecl
19 +static void __cdecl
20  gl_msvc_invalid_parameter_handler (const wchar_t *expression,
21                                     const wchar_t *function,
22                                     const wchar_t *file,
23 @@ -45,7 +45,7 @@
24
25  #  if defined _MSC_VER
26
27 -static void cdecl
28 +static void __cdecl
29  gl_msvc_invalid_parameter_handler (const wchar_t *expression,
30                                     const wchar_t *function,
31                                     const wchar_t *file,
32 @@ -94,7 +94,7 @@
33      }
34  }
35
36 -static void cdecl
37 +static void __cdecl
38  gl_msvc_invalid_parameter_handler (const wchar_t *expression,
39                                     const wchar_t *function,
40                                     const wchar_t *file,