From 33eb1bd23b100a8e65a0e66621760368b5aecdaf Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Fri, 11 May 2018 14:36:41 +0430 Subject: [PATCH] Remove unnecessary headers and definitions of hb-blob (#1028) It removes io.h and other polyfills which we no longer need as 7e76d74 --- src/hb-blob.cc | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/src/hb-blob.cc b/src/hb-blob.cc index 67aede1d3..02e3826c0 100644 --- a/src/hb-blob.cc +++ b/src/hb-blob.cc @@ -482,33 +482,19 @@ hb_blob_t::try_make_writable (void) */ #ifdef HAVE_MMAP -#include -#include -#include +# include +# include +# include #endif #if defined(_WIN32) || defined(__CYGWIN__) -#include -#include - -#undef fstat -#define fstat(a,b) _fstati64(a,b) -#undef stat -#define stat _stati64 - -#ifndef S_ISREG -# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG) +# include #endif -#endif // defined(_WIN32) || defined(__CYGWIN__) #ifndef _O_BINARY # define _O_BINARY 0 #endif -#ifndef MAP_FAILED -# define MAP_FAILED ((void *) -1) -#endif - struct hb_mapped_file_t { char *contents;