Add HB_NO_OEPN (#1767)

This commit is contained in:
Ebrahim Byagowi 2019-06-11 01:33:09 +04:30 committed by GitHub
parent a36ff94171
commit b4a5a69ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -543,6 +543,9 @@ _hb_mapped_file_destroy (void *file_)
hb_blob_t *
hb_blob_create_from_file (const char *file_name)
{
#ifdef HB_NO_OEPN
return hb_blob_get_empty ();
#endif
/* Adopted from glib's gmappedfile.c with Matthias Clasen and
Allison Lortie permission but changed a lot to suit our need. */
#if defined(HAVE_MMAP) && !defined(HB_NO_MMAP)

View File

@ -60,7 +60,9 @@
#define HB_NO_GETENV
#define HB_NO_LAYOUT_UNUSED
#define HB_NO_MATH
#define HB_NO_MMAP
#define HB_NO_NAME
#define HB_NO_OEPN
#define HB_NO_SETLOCALE
#define HB_NO_SUBSET_LAYOUT
#endif