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

It removes io.h and other polyfills which we no longer need as 7e76d74
This commit is contained in:
Ebrahim Byagowi 2018-05-11 14:36:41 +04:30 committed by GitHub
parent 7e76d746e2
commit 33eb1bd23b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 18 deletions

View File

@ -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;