未验证 提交 b4a5a69a 编写于 作者: E Ebrahim Byagowi 提交者: GitHub

Add HB_NO_OEPN (#1767)

上级 a36ff941
...@@ -543,6 +543,9 @@ _hb_mapped_file_destroy (void *file_) ...@@ -543,6 +543,9 @@ _hb_mapped_file_destroy (void *file_)
hb_blob_t * hb_blob_t *
hb_blob_create_from_file (const char *file_name) 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 /* Adopted from glib's gmappedfile.c with Matthias Clasen and
Allison Lortie permission but changed a lot to suit our need. */ Allison Lortie permission but changed a lot to suit our need. */
#if defined(HAVE_MMAP) && !defined(HB_NO_MMAP) #if defined(HAVE_MMAP) && !defined(HB_NO_MMAP)
......
...@@ -60,7 +60,9 @@ ...@@ -60,7 +60,9 @@
#define HB_NO_GETENV #define HB_NO_GETENV
#define HB_NO_LAYOUT_UNUSED #define HB_NO_LAYOUT_UNUSED
#define HB_NO_MATH #define HB_NO_MATH
#define HB_NO_MMAP
#define HB_NO_NAME #define HB_NO_NAME
#define HB_NO_OEPN
#define HB_NO_SETLOCALE #define HB_NO_SETLOCALE
#define HB_NO_SUBSET_LAYOUT #define HB_NO_SUBSET_LAYOUT
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册