summaryrefslogtreecommitdiffstats
path: root/common/utf8conv.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2021-12-17 05:28:42 +0100
committerNIIBE Yutaka <gniibe@fsij.org>2021-12-17 05:32:14 +0100
commite08225030dfb2090e756d26575f38c371e5a81cf (patch)
tree3b6284bdd8547907a10a6c571112830f99ae0720 /common/utf8conv.c
parentgpg: Emit compatible Ed25519 signature. (diff)
downloadgnupg2-e08225030dfb2090e756d26575f38c371e5a81cf.tar.xz
gnupg2-e08225030dfb2090e756d26575f38c371e5a81cf.zip
w32: Prepare for the case gcrypt.h will not include winsock2.h.
* common/dynload.h: Include specific headers only. * common/exechelp-w32.c: Include <windows.h>. * common/gettime.c: Likewise. * common/utf8conv.c: Likewise. * tests/gpgscm/ffi.c: Likewise. * tools/gpgconf.c: Likewise. * configure.ac: Check winsock2.h, removing gl_HEADER_SYS_SOCKET. -- GnuPG-bug-id: 5731 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'common/utf8conv.c')
-rw-r--r--common/utf8conv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/utf8conv.c b/common/utf8conv.c
index bdab225a9..1f01841c7 100644
--- a/common/utf8conv.c
+++ b/common/utf8conv.c
@@ -55,6 +55,10 @@
#include "stringhelp.h"
#include "utf8conv.h"
+#ifdef HAVE_W32_SYSTEM
+#include <windows.h>
+#endif
+
#ifndef MB_LEN_MAX
#define MB_LEN_MAX 16
#endif