summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-05-03 14:05:48 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-05-04 13:30:02 +0000
commitcbdf926884c4d96a84ff12293fd45b9ec95d5b93 (patch)
treeb2db30743300761745b998b38eaf842a6f0c127d /core
parentdc36790c08bdcea0227f05b6b4f5f5d8997522e0 (diff)
downloadpdfium-cbdf926884c4d96a84ff12293fd45b9ec95d5b93.tar.xz
Move O_BINARY and O_LARGEFILE defintions
No code needs this execpt one file. Change-Id: Ibceb33259f5a3635de36a272ebd49ef572004cbc Reviewed-on: https://pdfium-review.googlesource.com/4832 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/fxcrt/fx_stream.h8
-rw-r--r--core/fxcrt/fxcrt_posix.cpp8
2 files changed, 8 insertions, 8 deletions
diff --git a/core/fxcrt/fx_stream.h b/core/fxcrt/fx_stream.h
index 5eb83e5681..9e3277720d 100644
--- a/core/fxcrt/fx_stream.h
+++ b/core/fxcrt/fx_stream.h
@@ -25,14 +25,6 @@ typedef CFindFileDataA FX_FileHandle;
#include <sys/types.h>
#include <unistd.h>
-#ifndef O_BINARY
-#define O_BINARY 0
-#endif // O_BINARY
-
-#ifndef O_LARGEFILE
-#define O_LARGEFILE 0
-#endif // O_LARGEFILE
-
typedef DIR FX_FileHandle;
#endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
diff --git a/core/fxcrt/fxcrt_posix.cpp b/core/fxcrt/fxcrt_posix.cpp
index 3afe2c32d5..ca4ac161a4 100644
--- a/core/fxcrt/fxcrt_posix.cpp
+++ b/core/fxcrt/fxcrt_posix.cpp
@@ -11,6 +11,14 @@
#include "core/fxcrt/fx_basic.h"
#include "third_party/base/ptr_util.h"
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif // O_BINARY
+
+#ifndef O_LARGEFILE
+#define O_LARGEFILE 0
+#endif // O_LARGEFILE
+
#if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ || \
_FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ || \
_FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_