diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-06-28 11:57:21 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-06-28 11:57:21 +0200 |
commit | 2da9ee14459d169fd033e36efe8780250b4283b1 (patch) | |
tree | 851bb4be9c32e32eb43ef0c6ed6129b5a8de7b88 /NK_C_API.cc | |
parent | ab0f01c381c16ed61b8258582869912d4c38cbb7 (diff) | |
download | libnitrokey-2da9ee14459d169fd033e36efe8780250b4283b1.tar.gz libnitrokey-2da9ee14459d169fd033e36efe8780250b4283b1.tar.bz2 |
Run compilation using Qt Creator
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc index db87d90..3131db1 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -5,16 +5,16 @@ #include "include/LibraryException.h" #include "include/cxx_semantics.h" -#ifdef _WIN32 -#pragma message "Using own strndup" -char * strndup(const char* str, size_t maxlen) { - size_t len = strnlen(str, maxlen); - char* dup = (char *)malloc(len + 1); - memcpy(dup, str, len); - dup[len] = 0; - return dup; -} -#endif +//#ifdef _WIN32 +//#pragma message "Using own strndup" +//char * strndup(const char* str, size_t maxlen) { +// size_t len = strnlen(str, maxlen); +// char* dup = (char *)malloc(len + 1); +// memcpy(dup, str, len); +// dup[len] = 0; +// return dup; +//} +//#endif using namespace nitrokey; |