Skip to content

Commit

Permalink
msvc: support strcpy() with strcpy_s()
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed May 27, 2014
1 parent 112556d commit 2b68355
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
#include "include/capstone.h"
#include "cs_priv.h"

// strcasecmp for MSVC
// strcasecmp() & strcpy() for MSVC
#if !defined(__MINGW32__) && !defined(__MINGW64__) // this is not MingW
#if defined (WIN32) || defined (WIN64) || defined (_WIN32) || defined (_WIN64)

// string.h
#define strcasecmp _stricmp
#define strcpy strcpy_s

#endif // MSVC
#endif // not MingW
Expand Down

0 comments on commit 2b68355

Please sign in to comment.