diff options
Diffstat (limited to 'src/UriFile.c')
-rw-r--r-- | src/UriFile.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/UriFile.c b/src/UriFile.c index 303ee49..f69c5d8 100644 --- a/src/UriFile.c +++ b/src/UriFile.c @@ -67,6 +67,10 @@ +#include <stdlib.h> /* for size_t, avoiding stddef.h for older MSVCs */ + + + static URI_INLINE int URI_FUNC(FilenameToUriString)(const URI_CHAR * filename, URI_CHAR * uriString, UriBool fromUnix) { const URI_CHAR * input = filename; @@ -92,7 +96,7 @@ static URI_INLINE int URI_FUNC(FilenameToUriString)(const URI_CHAR * filename, : is_windows_network ? _UT("file:") : _UT("file:///"); - const int prefixLen = URI_STRLEN(prefix); + const size_t prefixLen = URI_STRLEN(prefix); /* Copy prefix */ memcpy(uriString, prefix, prefixLen * sizeof(URI_CHAR)); |