1 diff -ur gpgmepp.org/lang/cpp/src/callbacks.cpp gpgmepp/lang/cpp/src/callbacks.cpp
2 --- gpgmepp.org/lang/cpp/src/callbacks.cpp 2016-10-18 19:22:02.000000000 +0200
3 +++ gpgmepp/lang/cpp/src/callbacks.cpp 2017-11-20 18:03:04.290060900 +0100
13 static inline gpgme_error_t make_err_from_syserror()
14 diff -ur gpgmepp.org/lang/cpp/src/data.h gpgmepp/lang/cpp/src/data.h
15 --- gpgmepp.org/lang/cpp/src/data.h 2017-03-24 15:20:32.000000000 +0100
16 +++ gpgmepp/lang/cpp/src/data.h 2017-11-20 17:23:24.802711200 +0100
22 +# include <BaseTsd.h>
23 +typedef SSIZE_T ssize_t;
29 diff -ur gpgmepp.org/lang/cpp/src/editinteractor.cpp gpgmepp/lang/cpp/src/editinteractor.cpp
30 --- gpgmepp.org/lang/cpp/src/editinteractor.cpp 2017-03-09 09:01:10.000000000 +0100
31 +++ gpgmepp/lang/cpp/src/editinteractor.cpp 2017-11-20 18:09:33.022674700 +0100
40 +# include <windows.h>
41 +# include <BaseTsd.h>
42 + typedef SSIZE_T ssize_t;
46 diff -ur gpgmepp.org/lang/cpp/src/gpgmepp_export.h gpgmepp/lang/cpp/src/gpgmepp_export.h
47 --- gpgmepp.org/lang/cpp/src/gpgmepp_export.h 2016-08-04 15:03:09.000000000 +0200
48 +++ gpgmepp/lang/cpp/src/gpgmepp_export.h 2017-11-20 16:57:47.805691100 +0100
50 # ifndef GPGMEPP_EXPORT
51 # ifdef BUILDING_GPGMEPP
52 /* We are building this library */
55 # define GPGMEPP_EXPORT __declspec(dllexport)
57 # define GPGMEPP_EXPORT __attribute__((visibility("default")))
60 /* We are using this library */
63 # define GPGMEPP_EXPORT __declspec(dllimport)
65 # define GPGMEPP_EXPORT __attribute__((visibility("default")))
69 # ifndef GPGMEPP_NO_EXPORT
72 # define GPGMEPP_NO_EXPORT
74 # define GPGMEPP_NO_EXPORT __attribute__((visibility("hidden")))
78 #ifndef GPGMEPP_DEPRECATED
79 -# define GPGMEPP_DEPRECATED __attribute__ ((__deprecated__))
81 +# define GPGMEPP_DEPRECATED __declspec(deprecated("deprecated"))
83 +# define GPGMEPP_DEPRECATED __attribute__ ((__deprecated__))
87 #ifndef GPGMEPP_DEPRECATED_EXPORT
88 diff -ur gpgmepp.org/lang/cpp/src/interfaces/dataprovider.h gpgmepp/lang/cpp/src/interfaces/dataprovider.h
89 --- gpgmepp.org/lang/cpp/src/interfaces/dataprovider.h 2016-05-17 14:32:37.000000000 +0200
90 +++ gpgmepp/lang/cpp/src/interfaces/dataprovider.h 2017-11-20 18:03:11.332715700 +0100
93 #include <gpg-error.h>
96 +# include <BaseTsd.h>
97 +typedef SSIZE_T ssize_t;
103 diff -ur gpgmepp.org/lang/cpp/src/key.cpp gpgmepp/lang/cpp/src/key.cpp
104 --- gpgmepp.org/lang/cpp/src/key.cpp 2017-03-20 20:10:15.000000000 +0100
105 +++ gpgmepp/lang/cpp/src/key.cpp 2017-11-20 17:44:50.321858800 +0100
117 +# define strcasecmp _stricmp
120 const GpgME::Key::Null GpgME::Key::null;
123 diff -ur gpgmepp.org/lang/cpp/src/key.h gpgmepp/lang/cpp/src/key.h
124 --- gpgmepp.org/lang/cpp/src/key.h 2017-03-20 20:10:15.000000000 +0100
125 +++ gpgmepp/lang/cpp/src/key.h 2017-11-20 17:07:51.551632000 +0100
130 -#include <sys/time.h>
134 diff -ur gpgmepp.org/lang/qt/src/qgpgme_export.h gpgmepp/lang/qt/src/qgpgme_export.h
135 --- gpgmepp.org/lang/qt/src/qgpgme_export.h 2016-11-03 17:32:30.000000000 +0100
136 +++ gpgmepp/lang/qt/src/qgpgme_export.h 2017-11-20 16:58:27.395388000 +0100
138 # ifndef QGPGME_EXPORT
139 # ifdef BUILDING_QGPGME
140 /* We are building this library */
143 # define QGPGME_EXPORT __declspec(dllexport)
145 # define QGPGME_EXPORT __attribute__((visibility("default")))
148 /* We are using this library */
151 # define QGPGME_EXPORT __declspec(dllimport)
153 # define QGPGME_EXPORT __attribute__((visibility("default")))
157 # ifndef QGPGME_NO_EXPORT
160 # define QGPGME_NO_EXPORT
162 # define QGPGME_NO_EXPORT __attribute__((visibility("hidden")))
166 #ifndef QGPGME_DEPRECATED
167 -# define QGPGME_DEPRECATED __attribute__ ((__deprecated__))
169 +# define QGPGME_DEPRECATED __declspec(deprecated("deprecated"))
171 +# define QGPGME_DEPRECATED __attribute__ ((__deprecated__))
175 #ifndef QGPGME_DEPRECATED_EXPORT