summaryrefslogtreecommitdiffstats
path: root/external/gpgmepp/Wincompatible-function-pointer-types.patch
blob: 050d2e55cfc70dee2682a8fbe039574fe18fd1dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- src/assuan-support.c
+++ src/assuan-support.c
@@ -126,7 +126,7 @@
 }
 
 
-static gpgme_ssize_t
+static ssize_t
 my_read (assuan_context_t ctx, assuan_fd_t fd, void *buffer, size_t size)
 {
   (void)ctx;
@@ -134,7 +134,7 @@
 }
 
 
-static gpgme_ssize_t
+static ssize_t
 my_write (assuan_context_t ctx, assuan_fd_t fd, const void *buffer, size_t size)
 {
   (void)ctx;
--- src/gpgme-w32spawn.c
+++ src/gpgme-w32spawn.c
@@ -243,7 +243,7 @@
           handle = LoadLibrary ("user32.dll");
           if (handle)
             {
-              func = GetProcAddress (handle, "AllowSetForegroundWindow");
+              func = (BOOL (WINAPI *)(DWORD)) GetProcAddress (handle, "AllowSetForegroundWindow");
               if (!func)
                 FreeLibrary (handle);
             }