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:
parent
7e76d746e2
commit
33eb1bd23b
|
@ -482,33 +482,19 @@ hb_blob_t::try_make_writable (void)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_MMAP
|
#ifdef HAVE_MMAP
|
||||||
#include <sys/types.h>
|
# include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
# include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
# include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||||
#include <windows.h>
|
# 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)
|
|
||||||
#endif
|
#endif
|
||||||
#endif // defined(_WIN32) || defined(__CYGWIN__)
|
|
||||||
|
|
||||||
#ifndef _O_BINARY
|
#ifndef _O_BINARY
|
||||||
# define _O_BINARY 0
|
# define _O_BINARY 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MAP_FAILED
|
|
||||||
# define MAP_FAILED ((void *) -1)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct hb_mapped_file_t
|
struct hb_mapped_file_t
|
||||||
{
|
{
|
||||||
char *contents;
|
char *contents;
|
||||||
|
|
Loading…
Reference in New Issue