From 30cbe6158de1ddc0546d55e4edc1fe264e1b86ef Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Fri, 19 Oct 2018 22:04:56 +0200 Subject: [PATCH] Use O_BINARY instead of _O_BINARY Cygwin does not seem to have the later --- src/hb-blob.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-blob.cc b/src/hb-blob.cc index edee673..368491c 100644 --- a/src/hb-blob.cc +++ b/src/hb-blob.cc @@ -487,8 +487,8 @@ hb_blob_t::try_make_writable (void) #if defined(_WIN32) || defined(__CYGWIN__) # include #else -# ifndef _O_BINARY -# define _O_BINARY 0 +# ifndef O_BINARY +# define O_BINARY 0 # endif #endif @@ -540,7 +540,7 @@ hb_blob_create_from_file (const char *file_name) hb_mapped_file_t *file = (hb_mapped_file_t *) calloc (1, sizeof (hb_mapped_file_t)); if (unlikely (!file)) return hb_blob_get_empty (); - int fd = open (file_name, O_RDONLY | _O_BINARY, 0); + int fd = open (file_name, O_RDONLY | O_BINARY, 0); if (unlikely (fd == -1)) goto fail_without_close; struct stat st; -- 2.7.4