Skip to content

Commit

Permalink
fix strcmp bug in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Apr 1, 2020
1 parent 794a44e commit 291cbac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/src/tc_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace tars
int TC_Port::strcmp(const char *s1, const char *s2)
{
#if TARGET_PLATFORM_WINDOWS
return ::_strcmp(s1, s2);
return ::strcmp(s1, s2);
#else
return ::strcmp(s1, s2);
#endif
Expand All @@ -47,7 +47,7 @@ int TC_Port::strcmp(const char *s1, const char *s2)
int TC_Port::strncmp(const char *s1, const char *s2, size_t n)
{
#if TARGET_PLATFORM_WINDOWS
return ::_strncmp(s1, s2, n);
return ::strncmp(s1, s2, n);
#else
return ::strncmp(s1, s2, n);
#endif
Expand Down

0 comments on commit 291cbac

Please sign in to comment.