posix/fd: move definition of O_BINARY into public header

This commit is contained in:
Danny Robson 2018-08-31 13:57:03 +10:00
parent 1a7b7daa93
commit 4fd20d2acf
2 changed files with 8 additions and 5 deletions

View File

@ -15,10 +15,6 @@
#include <fcntl.h>
#include <unistd.h>
#if !defined(O_BINARY)
#define O_BINARY 0
#endif
using cruft::posix::fd;

View File

@ -12,10 +12,17 @@
#include "../debug.hpp"
#include "../view.hpp"
#include <experimental/filesystem>
#include <sys/types.h>
#include <sys/stat.h>
#include <experimental/filesystem>
#include <fcntl.h>
#if !defined(O_BINARY)
#define O_BINARY 0
#endif
namespace cruft::posix {
///------------------------------------------------------------------------