Skip to content

Commit

Permalink
Add #define's in dart_init.cc (flutter#4453)
Browse files Browse the repository at this point in the history
  • Loading branch information
szakarias authored Dec 13, 2017
1 parent 4cbe26d commit 8cfab93
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions runtime/dart_init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8cfab93

Please sign in to comment.