1 --- src/argparse.c 2021-11-03 13:44:56.000000000 +0100
2 +++ src/argparse.c~ 2022-01-03 17:05:23.418077200 +0100
11 +# define strncasecmp _strnicmp
12 +# define strcasecmp _stricmp
15 #include "gpgrt-int.h"
17 --- src/gpg-error.c 2022-03-04 20:25:28.000000000 +0900
18 +++ src/gpg-error.c~ 2023-08-30 15:10:24.521856169 +0900
20 #define drop_locale_dir(dir)
24 +# define strncasecmp _strnicmp
25 +# define strcasecmp _stricmp
31 --- src/spawn-w32.c 2023-08-30 15:24:46.861855840 +0900
32 +++ src/spawn-w32.c~ 2023-08-30 15:26:04.581855810 +0900
34 * Previous versions interpreted X_OK as F_OK anyway, so we'll just
35 * use F_OK directly. */
40 /* For HANDLE and the internal file descriptor (fd) of this module:
41 * HANDLE can be represented by an intptr_t which should be true for
43 --- src/logging.c 2023-03-21 18:33:56.000000000 +0900
44 +++ src/logging.c~ 2023-08-30 15:37:20.661855553 +0900
46 # include <netinet/in.h>
47 # include <arpa/inet.h>
48 #endif /*!HAVE_W32_SYSTEM*/
52 +# include <process.h>
57 /* #include <execinfo.h> */
62 #ifdef HAVE_W32_SYSTEM
64 +# define S_IRUSR _S_IREAD
67 +# define S_IWUSR _S_IWRITE
70 +# define S_IXUSR 0x00400000
73 # define S_IRGRP S_IRUSR
74 # define S_IWGRP S_IWUSR
75 --- src/Makefile.am 2022-08-19 17:39:54.000000000 +0900
76 +++ src/Makefile.am~ 2023-08-30 15:41:10.371855465 +0900
78 # libgpg_error_la_DEPENDENCIES = \
79 # $(srcdir)/gpg-error.vers
81 -libgpg_error_la_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
82 -libgpg_error_la_LIBADD = $(gpg_error_res) $(intllibs) $(socklibs) $(LIBTHREAD)
83 +libgpg_error_la_CPPFLAGS = -DLOCALEDIR=$(localelidir)
84 +libgpg_error_la_LIBADD = $(gpg_error_res) $(intllibs) $(socklibs) -ladvapi32 $(LIBTHREAD)
86 gpg_error_SOURCES = strsource-sym.c strerror-sym.c gpg-error.c
87 gpg_error_CPPFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\" \
88 --- src/Makefile.in 2023-08-30 14:44:01.102310369 +0900
89 +++ src/Makefile.in~ 2023-08-30 15:54:38.371855157 +0900
92 # libgpg_error_la_DEPENDENCIES = \
93 # $(srcdir)/gpg-error.vers
94 -libgpg_error_la_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\"
95 -libgpg_error_la_LIBADD = $(gpg_error_res) $(intllibs) $(socklibs) $(LIBTHREAD)
96 +libgpg_error_la_CPPFLAGS = -DLOCALEDIR=$(localedir)
97 +libgpg_error_la_LIBADD = $(gpg_error_res) $(intllibs) $(socklibs) -ladvapi32 $(LIBTHREAD)
98 gpg_error_SOURCES = strsource-sym.c strerror-sym.c gpg-error.c
99 gpg_error_CPPFLAGS = -DPKGDATADIR=\"$(pkgdatadir)\" \
100 -DLOCALEDIR=\"$(localedir)\"
101 --- src/sysutils.c 2023-03-21 18:33:56.000000000 +0900
102 +++ src/sysutils.c~ 2023-08-30 15:57:34.401855090 +0900
112 +# include <unistd.h>
115 #ifdef HAVE_W32_SYSTEM
116 # include <windows.h>
117 --- src/visibility.c 2020-06-05 18:54:56.410442900 +0200
118 +++ src/visibility.c~ 2019-01-04 12:56:54.000000000 +0100
119 @@ -1067,11 +1067,7 @@
120 _gpgrt_log_assert (const char *expr, const char *file,
121 int line, const char *func)
123 -#ifdef GPGRT_HAVE_MACRO_FUNCTION
124 _gpgrt__log_assert (expr, file, line, func);
126 - _gpgrt__log_assert (expr, file, line);
131 --- src/w32-add.h 2020-06-06 00:32:38.502203300 +0200
132 +++ src/w32-add.h~ 2018-12-07 14:48:19.000000000 +0100
134 char *gpgrt_w32_reg_query_string (const char *root,
138 +wchar_t *utf8_to_wchar (const char *string, size_t length, size_t *retlen);
139 --- src/w32-gettext.c 2022-03-04 21:44:26.000000000 +0900
140 +++ src/w32-gettext.c~ 2023-08-30 16:01:12.861855006 +0900
141 @@ -1325,7 +1325,7 @@
142 is not defined. If LENGTH is zero and RETLEN NULL the function
143 assumes that STRING is a nul-terminated string and returns a
144 (wchar_t)0-terminated string. */
147 utf8_to_wchar (const char *string, size_t length, size_t *retlen)