1 --- src/gpg-error.c 2020-06-06 00:18:40.199791000 +0200
2 +++ src/gpg-error.c~ 2020-06-05 18:44:14.223182300 +0200
4 #define drop_locale_dir(dir)
8 +# define strncasecmp _strnicmp
9 +# define strcasecmp _stricmp
15 --- src/logging.c 2020-06-05 18:58:59.254413200 +0200
16 +++ src/logging.c~ 2019-12-12 15:23:37.000000000 +0100
18 # include <netinet/in.h>
19 # include <arpa/inet.h>
20 #endif /*!HAVE_W32_SYSTEM*/
28 /* #include <execinfo.h> */
33 #ifdef HAVE_W32_SYSTEM
35 +# define S_IRUSR _S_IREAD
38 +# define S_IWUSR _S_IWRITE
41 +# define S_IXUSR 0x00400000
44 # define S_IRGRP S_IRUSR
45 # define S_IWGRP S_IWUSR
46 --- src/Makefile.am 2020-06-06 01:01:31.931459300 +0200
47 +++ src/Makefile.am~ 2020-02-06 18:39:06.000000000 +0100
49 # without the extra_cppflags because they may include am -idirafter
50 # which is not supported by the RC compiler.
51 libgpg_error_la_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" $(extra_cppflags)
52 +libgpg_error_la_LIBADD = $(gpg_error_res) $(intllibs) $(socklibs) -ladvapi32 $(LIBTHREAD)
53 -libgpg_error_la_LIBADD = $(gpg_error_res) $(intllibs) $(socklibs) $(LIBTHREAD)
55 gpg_error_SOURCES = strsource-sym.c strerror-sym.c gpg-error.c
56 gpg_error_CPPFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\" \
57 --- src/Makefile.in 2020-06-06 01:01:31.931459300 +0200
58 +++ src/Makefile.in~ 2020-02-06 18:39:06.000000000 +0100
60 # without the extra_cppflags because they may include am -idirafter
61 # which is not supported by the RC compiler.
62 libgpg_error_la_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" $(extra_cppflags)
63 +libgpg_error_la_LIBADD = $(gpg_error_res) $(intllibs) $(socklibs) -ladvapi32 $(LIBTHREAD)
64 -libgpg_error_la_LIBADD = $(gpg_error_res) $(intllibs) $(socklibs) $(LIBTHREAD)
65 gpg_error_SOURCES = strsource-sym.c strerror-sym.c gpg-error.c
66 gpg_error_CPPFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\" \
67 -DLOCALEDIR=\"$(localedir)\" $(extra_cppflags)
68 --- src/spawn-w32.c 2020-06-05 18:47:05.807099200 +0200
69 +++ src/spawn-w32.c~ 2020-06-05 18:44:14.114035900 +0200
71 /* We don't use ENVP. */
75 + if (_access (pgmname, 04))
77 if (access (pgmname, X_OK))
79 return _gpg_err_code_from_syserror ();
81 /* Prepare security attributes. */
82 --- src/sysutils.c 2020-06-06 00:23:52.457265500 +0200
83 +++ src/sysutils.c~ 2019-12-12 15:23:37.000000000 +0100
95 #ifdef HAVE_W32_SYSTEM
99 _gpgrt_mkdir (const char *name, const char *modestr)
102 -#ifdef HAVE_W32CE_SYSTEM
107 + wname = utf8_to_wchar (name, -1, &size);
108 - wname = utf8_to_wchar (name);
110 return _gpg_err_code_from_syserror ();
111 if (!CreateDirectoryW (wname, NULL))
112 --- src/visibility.c 2020-06-05 18:54:56.410442900 +0200
113 +++ src/visibility.c~ 2019-01-04 12:56:54.000000000 +0100
114 @@ -1067,11 +1067,7 @@
115 _gpgrt_log_assert (const char *expr, const char *file,
116 int line, const char *func)
118 -#ifdef GPGRT_HAVE_MACRO_FUNCTION
119 _gpgrt__log_assert (expr, file, line, func);
121 - _gpgrt__log_assert (expr, file, line);
126 --- src/w32-add.h 2020-06-06 00:32:38.502203300 +0200
127 +++ src/w32-add.h~ 2018-12-07 14:48:19.000000000 +0100
129 char *gpgrt_w32_reg_query_string (const char *root,
133 +wchar_t *utf8_to_wchar (const char *string, size_t length, size_t *retlen);
134 --- src/w32-gettext.c 2020-06-06 00:33:24.680341900 +0200
135 +++ src/w32-gettext.c~ 2020-06-05 18:44:14.254481700 +0200
136 @@ -1355,7 +1355,7 @@
137 string STRING. Caller must free this value. On failure returns
138 NULL. The result of calling this function with STRING set to NULL
142 utf8_to_wchar (const char *string, size_t length, size_t *retlen)