w32: Allow building for Windows again.
authorWerner Koch <wk@gnupg.org>
Tue, 21 Nov 2017 15:42:47 +0000 (16:42 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 21 Nov 2017 15:42:47 +0000 (16:42 +0100)
commit8ea3a6c3f8e72ebece2af9b1b05ea1da4865a786
treeab172a263ad46a072e47158e949d3ae4c3e62e98
parent622f876784239c9524a598e6486181bcd0ee64b2
w32: Allow building for Windows again.

* pinentry/pinentry.c [W32]: Do not include utsname.h
(WITH_UTF8_CONVERSION): New macro.
(lc_ctype_unknown_warning): Move that var to the top and define only
if needed.
(pinentry_utf8_to_local, pinentry_local_to_utf8): Simplyfy by using
the new macro.
(get_cmdline) [W32]: Do not build.
(get_pid_name_for_uid) [W32]: Do not build.
(pinentry_get_title) [W32]: Do not use the new utsname code.
(option_handler) <debug-wait>: Ignore for any Windows version.
--

Also remove a couple of warnings.

Signed-off-by: Werner Koch <wk@gnupg.org>
pinentry/password-cache.c
pinentry/pinentry.c