From 6e681f48d058cbc7be60556aaf9643f72101be68 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 25 Apr 2017 22:25:03 +0200 Subject: Use own strndup implementation under Windows Signed-off-by: Szczepan Zalega --- include/NitrokeyManager.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/NitrokeyManager.h b/include/NitrokeyManager.h index 51cd966..e3dcc45 100644 --- a/include/NitrokeyManager.h +++ b/include/NitrokeyManager.h @@ -18,6 +18,11 @@ namespace nitrokey { using namespace nitrokey::proto; using namespace nitrokey::log; + +#ifdef __WIN32 +char * strndup(const char* str, size_t maxlen); +#endif + class NitrokeyManager { public: static shared_ptr instance(); -- cgit v1.2.1