Skip to content

Commit

Permalink
str_size should be a typedef, not a #define
Browse files Browse the repository at this point in the history
Fixes #286
  • Loading branch information
zpostfacto committed Jul 12, 2023
1 parent 8488c56 commit 889e669
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/public/vstdlib/strtools.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ END_TIER1_NAMESPACE
BEGIN_TIER0_NAMESPACE

#ifdef _WIN64
#define str_size unsigned int
typedef unsigned int str_size;
#else
#define str_size size_t
typedef size_t str_size;
#endif

inline int V_strlen(const char *str) { return static_cast<int>( strlen ( str ) ); }
Expand Down

0 comments on commit 889e669

Please sign in to comment.