move JES_O_BINARY to FileReader.cc

This commit is contained in:
Josh Holtrop 2014-07-12 11:23:11 -04:00
parent a3326b099b
commit 17bce5caed
3 changed files with 7 additions and 8 deletions

View File

@ -5,12 +5,6 @@
#include "Path.h" #include "Path.h"
#include <string> #include <string>
#ifdef _WIN32
#define JES_O_BINARY O_BINARY
#else
#define JES_O_BINARY 0
#endif
namespace jes namespace jes
{ {
typedef Ref<std::string> StringRef; typedef Ref<std::string> StringRef;

View File

@ -4,6 +4,12 @@
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#ifdef _WIN32
#define JES_O_BINARY O_BINARY
#else
#define JES_O_BINARY 0
#endif
namespace jes namespace jes
{ {
bool FileReader::load(const char * fname, uint8_t ** buf, size_t * size) bool FileReader::load(const char * fname, uint8_t ** buf, size_t * size)

View File

@ -1,9 +1,8 @@
#ifndef JES_FILEREADER_H #ifndef JES_FILEREADER_H
#define JES_FILEREADER_H #define JES_FILEREADER_H
#include "Core.h"
#include "Ref.h"
#include <stdint.h> #include <stdint.h>
#include <stdlib.h>
namespace jes namespace jes
{ {