summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-04-10 10:52:24 +0200
committerWerner Koch <wk@gnupg.org>2015-04-10 10:53:58 +0200
commiteaec10f48803ee2232d1c1515fbe8f485c1e84b0 (patch)
tree3338689dfec07ceabdd2b36ba3f072765263bff6 /tests
parent56feff58d4fab92701ae77a1004af820b85e7f6c (diff)
downloadlibgpg-error-eaec10f48803ee2232d1c1515fbe8f485c1e84b0.tar.gz
w32: Remove compiler warnings.
* src/Makefile.am (pre_mkheader_cmds): Avoid make diagnostic about failed but ignored command. This confuses Emacs' compiler job parser. * tests/t-lock.c [W32]: Include time.h. * src/init.c: Reorganize Windows only code. (wchar_to_utf8, utf8_to_wchar): Remove unused functions. (_gpg_err_set_errno): Use only one copy for all platforms. -- Note that there is a still a problem for W64 pertaining to the use of an int to store a HANDLE. This will be fixed when we add a full abstraction layer for Windows file objects.
Diffstat (limited to 'tests')
-rw-r--r--tests/t-lock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/t-lock.c b/tests/t-lock.c
index 5a21666..fd645eb 100644
--- a/tests/t-lock.c
+++ b/tests/t-lock.c
@@ -29,6 +29,7 @@
#include <unistd.h>
#ifdef _WIN32
# include <windows.h>
+# include <time.h>
#else
# include <pthread.h>
#endif