Skip to content

Commit

Permalink
Fix Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwier committed Dec 7, 2015
1 parent 7a9e193 commit 536da2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions msvc/sc-hsm-pcsc-pkcs11.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<ClCompile Include="..\src\pkcs11\asn1.c" />
<ClCompile Include="..\src\pkcs11\bytestring.c" />
<ClCompile Include="..\src\pkcs11\certificateobject.c" />
<ClCompile Include="..\src\pkcs11\crc32.c" />
<ClCompile Include="..\src\pkcs11\dataobject.c" />
<ClCompile Include="..\src\pkcs11\debug.c" />
<ClCompile Include="..\src\pkcs11\object.c" />
Expand Down
4 changes: 4 additions & 0 deletions src/common/memset_s.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
* @ingroup FEPKCS11
*/

#ifdef _WIN32
static _inline void *memset_s(void *v, int c, size_t n)
#else
static inline void *memset_s(void *v, int c, size_t n)
#endif
{
volatile unsigned char *p = v;
while (n--)
Expand Down

0 comments on commit 536da2e

Please sign in to comment.