Fix unused function '_hb_mapped_file_destroy' if no mmap

This commit is contained in:
Behdad Esfahbod 2018-07-03 13:04:05 +04:30
parent 343e8c694b
commit 2cb075fe26
1 changed files with 2 additions and 0 deletions

View File

@ -508,6 +508,7 @@ struct hb_mapped_file_t
#endif
};
#if (defined(HAVE_MMAP) || defined(_WIN32) || defined(__CYGWIN__)) && !defined(HB_NO_MMAP)
static void
_hb_mapped_file_destroy (hb_mapped_file_t *file)
{
@ -522,6 +523,7 @@ _hb_mapped_file_destroy (hb_mapped_file_t *file)
free (file);
}
#endif
/**
* hb_blob_create_from_file: