diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-02-16 12:29:28 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:46 +0100 |
commit | a0df25c10bfc21574d474547bf2f25372bdbb417 (patch) | |
tree | b9e70ed99c7e15461fc9e4b6f8787607ee217550 /include/cxx_semantics.h | |
parent | fd254e6789bfc00467c94bd210434dc74a7c1f6a (diff) | |
download | libnitrokey-a0df25c10bfc21574d474547bf2f25372bdbb417.tar.gz libnitrokey-a0df25c10bfc21574d474547bf2f25372bdbb417.tar.bz2 |
Rename strdup to _strdup under MSVC
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/cxx_semantics.h')
-rw-r--r-- | include/cxx_semantics.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/cxx_semantics.h b/include/cxx_semantics.h index 29e51c3..f358e8f 100644 --- a/include/cxx_semantics.h +++ b/include/cxx_semantics.h @@ -1,12 +1,16 @@ #ifndef CXX_SEMANTICS_H #define CXX_SEMANTICS_H -#ifndef _WINDOWS +#ifndef _MSC_VER #define __packed __attribute__((__packed__)) #else #define __packed #endif +#ifdef _MSC_VER +#define strdup _strdup +#endif + /* * There's no need to include Boost for a simple subset this project needs. */ |