move JES_O_BINARY to FileReader.cc

This commit is contained in:
josh committed 2014-07-12 11:23:11 -04:00
1 parent a3326b099b
commit 17bce5caed
3 files changed
+7 -8

No files matched your search

-6
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;
+6
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)
+1 -2
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
{ {