Replace create_from_file with empty blob if HB_NO_OPEN is defined

This commit is contained in:
Ebrahim Byagowi 2019-06-25 01:42:42 +04:30 committed by Behdad Esfahbod
parent ccf1448238
commit bb4cdf8e0b
7 changed files with 28 additions and 0 deletions

View File

@ -38,6 +38,10 @@
using namespace OT;
#ifdef HB_NO_OPEN
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
#endif
int
main (int argc, char **argv)
{

View File

@ -34,6 +34,10 @@
#include <stdio.h>
#ifdef HB_NO_OPEN
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
#endif
int
main (int argc, char **argv)
{

View File

@ -31,6 +31,10 @@
#include <stdio.h>
#ifdef HB_NO_OPEN
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
#endif
int
main (int argc, char **argv)
{

View File

@ -35,6 +35,10 @@
#include "hb-ft.h"
#endif
#ifdef HB_NO_OPEN
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
#endif
int
main (int argc, char **argv)
{

View File

@ -27,6 +27,10 @@
#include <cairo.h>
#ifdef HB_NO_OPEN
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
#endif
#if !defined(HB_NO_COLOR) && defined(CAIRO_HAS_SVG_SURFACE)
#include "hb-ot.h"

View File

@ -30,6 +30,10 @@
#include <stdlib.h>
#include <stdio.h>
#ifdef HB_NO_OPEN
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
#endif
int
main (int argc, char **argv)
{

View File

@ -34,6 +34,10 @@
#include "hb-ft.h"
#endif
#ifdef HB_NO_OPEN
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
#endif
int
main (int argc, char **argv)
{