Skip to content

Commit

Permalink
Move warning about limited encoding support to cmake. #481
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed May 26, 2020
1 parent 11866c2 commit ee8a33d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ if(UNIX)
list(APPEND MINIZIP_DEF -DHAVE_ICONV)
list(APPEND MINIZIP_INC ${Iconv_INCLUDE_DIRS})
set(PC_PRIVATE_LIBS "${PC_PRIVATE_LIBS} -liconv")
else()
message(WARNING "Limited encoding support due to missing iconv")
endif()
endif()

Expand Down
1 change: 0 additions & 1 deletion mz_os_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ uint8_t *mz_os_utf8_string_create(const char *string, int32_t encoding)
return string_utf8;
}
#else
#pragma message("Warning: Limited encoding support")
uint8_t *mz_os_utf8_string_create(const char *string, int32_t encoding)
{
size_t string_length = 0;
Expand Down

0 comments on commit ee8a33d

Please sign in to comment.