aboutsummaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-06-28 11:57:21 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-06-28 11:57:21 +0200
commit2da9ee14459d169fd033e36efe8780250b4283b1 (patch)
tree851bb4be9c32e32eb43ef0c6ed6129b5a8de7b88 /NitrokeyManager.cc
parentab0f01c381c16ed61b8258582869912d4c38cbb7 (diff)
downloadlibnitrokey-2da9ee14459d169fd033e36efe8780250b4283b1.tar.gz
libnitrokey-2da9ee14459d169fd033e36efe8780250b4283b1.tar.bz2
Run compilation using Qt Creator
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 4393682..4b3c7e1 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -14,6 +14,7 @@ namespace nitrokey{
std::mutex mex_dev_com_manager;
+#ifndef strndup
#ifdef _WIN32
#pragma message "Using own strndup"
char * strndup(const char* str, size_t maxlen){
@@ -24,7 +25,7 @@ char * strndup(const char* str, size_t maxlen){
return dup;
}
#endif
-
+#endif
using nitrokey::misc::strcpyT;