Skip to content

Commit

Permalink
Fix compiler errors on MinGW.
Browse files Browse the repository at this point in the history
  • Loading branch information
mackron committed Mar 17, 2019
1 parent 0974da1 commit bb0a1af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/dred/dtk/dtk_path.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ size_t dtk_path_remove_extension(char* pathOut, size_t pathOutSize, const char*
}

const char* extension = dtk_path_extension(path);
if (extension != NULL && extension != '\0') {
if (extension != NULL && extension[0] != '\0') {
extension -= 1; // -1 to ensure the dot is removed as well.
}

Expand Down
2 changes: 1 addition & 1 deletion source/dred/dtk/dtk_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ DTK_INLINE int dtk_stricmp(const char* string1, const char* string2)
}


#ifndef _MSC_VER
#if !defined(_MSC_VER) && !defined(__MINGW32__)
DTK_INLINE int strcpy_s(char* dst, size_t dstSizeInBytes, const char* src)
{
return dtk_strcpy_s(dst, dstSizeInBytes, src);
Expand Down

0 comments on commit bb0a1af

Please sign in to comment.