1 diff -ru gpgme.orig/m4/ax_cxx_compile_stdcxx.m4 gpgme/m4/ax_cxx_compile_stdcxx.m4
2 --- gpgme.orig/m4/ax_cxx_compile_stdcxx.m4 2016-05-27 22:04:36.000000000 +0200
3 +++ gpgme/m4/ax_cxx_compile_stdcxx.m4 2017-09-29 17:34:49.795243600 +0200
6 #error "This is not a C++ compiler"
8 -#elif __cplusplus < 201103L
9 +#elif __cplusplus < 201103L && !(defined _MSC_VER)
11 #error "This is not a C++11 compiler"
13 diff -ru gpgme.orig/src/dirinfo.c gpgme/src/dirinfo.c
14 --- gpgme.orig/src/dirinfo.c 2017-03-21 11:09:41.000000000 +0100
15 +++ gpgme/src/dirinfo.c 2017-09-30 08:36:13.239279300 +0200
18 DEFINE_STATIC_LOCK (dirinfo_lock);
24 /* Constants used internally to select the data. */
27 diff -ru gpgme.orig/src/mbox-util.c gpgme/src/mbox-util.c
28 --- gpgme.orig/src/mbox-util.c 2016-11-16 13:22:41.000000000 +0100
29 +++ gpgme/src/mbox-util.c 2017-09-30 08:18:29.270567500 +0200
39 #include "mbox-util.h"
40 diff -ru gpgme.orig/src/priv-io.h gpgme/src/priv-io.h
41 --- gpgme.orig/src/priv-io.h 2016-11-16 13:23:14.000000000 +0100
42 +++ gpgme/src/priv-io.h 2017-09-30 08:20:38.770562400 +0200
44 #ifdef HAVE_SYS_TYPES_H
45 # include <sys/types.h>
52 /* A single file descriptor passed to spawn. For child fds, dup_to
53 diff -ru gpgme.orig/src/util.h gpgme/src/util.h
54 --- gpgme.orig/src/util.h 2017-03-28 11:41:30.000000000 +0200
55 +++ gpgme/src/util.h 2017-09-30 08:10:54.194049100 +0200
66 diff -ru gpgme.orig/src/w32-util.c gpgme/src/w32-util.c
67 --- gpgme.orig/src/w32-util.c 2017-03-09 09:01:10.000000000 +0100
68 +++ gpgme/src/w32-util.c 2017-09-30 08:32:02.114330500 +0200
71 XXXXXX[5] = letters[v % 62];
73 - fd = open (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
74 + //fd = open (tmpl, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
75 + fd = open (tmpl, O_RDWR | O_CREAT | O_EXCL);
78 gpg_err_set_errno (save_errno);
79 diff -ru gpgme.orig/src/Makefile.am gpgme/src/Makefile.am
80 --- gpgme.orig/src/Makefile.am 2017-09-30 11:50:07.456960000 +0200
81 +++ gpgme/src/Makefile.am 2017-09-30 11:51:29.609649400 +0200
83 m4data_DATA = gpgme.m4
84 nodist_include_HEADERS = gpgme.h
86 -bin_PROGRAMS = gpgme-tool
90 ltlib_gpgme_glib = libgpgme-glib.la
92 # versions, because then every object file is only compiled once.
93 AM_CFLAGS = @LIBASSUAN_CFLAGS@ @GPG_ERROR_CFLAGS@ @GLIB_CFLAGS@
95 -gpgme_tool_SOURCES = gpgme-tool.c argparse.c argparse.h
96 -gpgme_tool_LDADD = libgpgme.la @LIBASSUAN_LIBS@ @GPG_ERROR_LIBS@
106 - $(LTRCCOMPILE) -i "$<" -o "$@"
107 + $(LTRCCOMPILE) -i $< -o $@
109 gpgme_res = versioninfo.lo
110 no_undefined = -no-undefined
111 diff -ru gpgme.orig/src/vfs-mount.c gpgme/src/vfs-mount.c
112 --- gpgme.orig/src/vfs-mount.c 2017-03-09 09:01:10.000000000 +0100
113 +++ gpgme/src/vfs-mount.c 2017-09-30 13:10:51.845807600 +0200
118 - if (! strcasecmp ("MOUNTPOINT", code))
119 + if (! _stricmp ("MOUNTPOINT", code))
121 if (opd->result.mount_dir)
122 free (opd->result.mount_dir);
123 diff -ur gpgmepp.org/src/w32-glib-io.c gpgmepp/src/w32-glib-io.c
124 --- gpgmepp.org/src/w32-glib-io.c 2016-11-16 13:22:41.000000000 +0100
125 +++ gpgmepp/src/w32-glib-io.c 2017-11-20 06:40:44.793945300 +0100
127 #ifdef HAVE_SYS_TYPES_H
128 # include <sys/types.h>
130 +#include <winsock2.h>