aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-04-25 22:25:03 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-04-25 22:33:05 +0200
commit6e681f48d058cbc7be60556aaf9643f72101be68 (patch)
tree90159627bad0fc70b71a7bac937727c70e1f45c2 /include
parent6e5847809c5c4c68f916fda4351c0b5e279915ed (diff)
downloadlibnitrokey-6e681f48d058cbc7be60556aaf9643f72101be68.tar.gz
libnitrokey-6e681f48d058cbc7be60556aaf9643f72101be68.tar.bz2
Use own strndup implementation under Windows
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include')
-rw-r--r--include/NitrokeyManager.h5
1 files changed, 5 insertions, 0 deletions
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 <NitrokeyManager> instance();