diff options
author | Lei Zhang <thestig@chromium.org> | 2018-07-25 17:35:19 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-25 17:35:19 +0000 |
commit | 8481c71db0e3abed7bd12669116b223a65bebbb4 (patch) | |
tree | 9330a14cfba4a3aaf83870b4803e2ecd0ccacd82 /core/fxcrt/cfx_fileaccess_posix.cpp | |
parent | 5b322338073162afab98bb28c920692c73b995ed (diff) | |
download | pdfium-8481c71db0e3abed7bd12669116b223a65bebbb4.tar.xz |
Only build cfx_fileaccess_windows.cpp on Windows.
- Remove #if guards in the .cpp file and flip the #if guard in the
header to produce an error when incorrectly included.
- Do the same for cfx_fileaccess_posix.cpp.
- Also remove forward declarations for win32 APIs.
Change-Id: I81056ea6198d342e62744bd3240b3a28ac53d5c0
Reviewed-on: https://pdfium-review.googlesource.com/38410
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_fileaccess_posix.cpp')
-rw-r--r-- | core/fxcrt/cfx_fileaccess_posix.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/fxcrt/cfx_fileaccess_posix.cpp b/core/fxcrt/cfx_fileaccess_posix.cpp index fdcf4ae6bb..fdba53b71e 100644 --- a/core/fxcrt/cfx_fileaccess_posix.cpp +++ b/core/fxcrt/cfx_fileaccess_posix.cpp @@ -22,10 +22,6 @@ #define O_LARGEFILE 0 #endif // O_LARGEFILE -#if _FX_PLATFORM_ == _FX_PLATFORM_LINUX_ || \ - _FX_PLATFORM_ == _FX_PLATFORM_APPLE_ || \ - _FX_PLATFORM_ == _FX_PLATFORM_ANDROID_ - namespace { void GetFileMode(uint32_t dwModes, int32_t& nFlags, int32_t& nMasks) { @@ -153,5 +149,3 @@ bool CFX_FileAccess_Posix::Truncate(FX_FILESIZE szFile) { return !ftruncate(m_nFD, szFile); } - -#endif |