Add HB_NO_OEPN (#1767)
authorEbrahim Byagowi <ebrahim@gnu.org>
Mon, 10 Jun 2019 21:03:09 +0000 (01:33 +0430)
committerGitHub <noreply@github.com>
Mon, 10 Jun 2019 21:03:09 +0000 (01:33 +0430)
src/hb-blob.cc
src/hb-config.hh

index 5783fb2..0c562b7 100644 (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)
index bcce159..19ceed8 100644 (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