Fix unused function warning without iconv

This commit is contained in:
Evan Miller 2021-02-02 18:40:40 -05:00
parent 77f78ea757
commit 763716ecc6

View File

@ -260,6 +260,7 @@ mdb_target_charset(MdbHandle *mdb)
}
/* See: https://docs.microsoft.com/en-us/windows/win32/Intl/code-page-identifiers */
#ifdef HAVE_ICONV
static const char *mdb_iconv_name_from_code_page(int code_page) {
const char *jet3_iconv_code = NULL;
switch (code_page) {
@ -315,6 +316,7 @@ static const char *mdb_iconv_name_from_code_page(int code_page) {
}
return jet3_iconv_code;
}
#endif
void mdb_iconv_init(MdbHandle *mdb)
{