Remove unnecessary headers and definitions of hb-blob (#1028)

It removes io.h and other polyfills which we no longer need as 7e76d74
pull/1039/head
Ebrahim Byagowi 7 years ago committed by GitHub
parent 7e76d746e2
commit 33eb1bd23b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      src/hb-blob.cc

@ -482,33 +482,19 @@ hb_blob_t::try_make_writable (void)
*/
#ifdef HAVE_MMAP
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
# include <sys/types.h>
# include <sys/stat.h>
# include <fcntl.h>
#endif
#if defined(_WIN32) || defined(__CYGWIN__)
#include <windows.h>
#include <io.h>
#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 <windows.h>
#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;

Loading…
Cancel
Save