Add #define's in dart_init.cc (flutter/engine#4453)

This commit is contained in:
Sarah Zakarias
2017-12-13 14:13:02 +01:00
committed by GitHub
parent 5b8c89eaf0
commit 88f345d1d3

View File

@@ -12,6 +12,14 @@
#if defined(OS_WIN)
#include <windows.h>
#undef ERROR
#define access _access
#define R_OK 0x4
#ifndef S_ISDIR
#define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR)
#endif
#else
#include <unistd.h>
#endif