Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: core/src/fxcrt/fxcrt_posix.cpp

Issue 1427633010: Fix relative includes within core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/src/fxcrt/fxcrt_platforms.cpp ('k') | core/src/fxcrt/fxcrt_windows.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "../../include/fxcrt/fx_basic.h"
8 #include "fxcrt_posix.h" 7 #include "fxcrt_posix.h"
9 8
9 #include "core/include/fxcrt/fx_basic.h"
10
10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ || \ 11 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ || \
11 _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ || \ 12 _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ || \
12 _FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_ 13 _FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_
13 IFXCRT_FileAccess* FXCRT_FileAccess_Create() { 14 IFXCRT_FileAccess* FXCRT_FileAccess_Create() {
14 return new CFXCRT_FileAccess_Posix; 15 return new CFXCRT_FileAccess_Posix;
15 } 16 }
16 void FXCRT_Posix_GetFileMode(FX_DWORD dwModes, 17 void FXCRT_Posix_GetFileMode(FX_DWORD dwModes,
17 int32_t& nFlags, 18 int32_t& nFlags,
18 int32_t& nMasks) { 19 int32_t& nMasks) {
19 nFlags = O_BINARY | O_LARGEFILE; 20 nFlags = O_BINARY | O_LARGEFILE;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 170 }
170 FX_BOOL FX_File_Move(const CFX_ByteStringC& fileNameSrc, 171 FX_BOOL FX_File_Move(const CFX_ByteStringC& fileNameSrc,
171 const CFX_ByteStringC& fileNameDst) { 172 const CFX_ByteStringC& fileNameDst) {
172 return rename(fileNameSrc.GetCStr(), fileNameDst.GetCStr()); 173 return rename(fileNameSrc.GetCStr(), fileNameDst.GetCStr());
173 } 174 }
174 FX_BOOL FX_File_Move(const CFX_WideStringC& fileNameSrc, 175 FX_BOOL FX_File_Move(const CFX_WideStringC& fileNameSrc,
175 const CFX_WideStringC& fileNameDst) { 176 const CFX_WideStringC& fileNameDst) {
176 return FX_File_Move(FX_UTF8Encode(fileNameSrc), FX_UTF8Encode(fileNameDst)); 177 return FX_File_Move(FX_UTF8Encode(fileNameSrc), FX_UTF8Encode(fileNameDst));
177 } 178 }
178 #endif 179 #endif
OLDNEW
« no previous file with comments | « core/src/fxcrt/fxcrt_platforms.cpp ('k') | core/src/fxcrt/fxcrt_windows.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698