| OLD | NEW |
| 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 "core/fxcrt/fxcrt_platforms.h" | 7 #include "core/fxcrt/fxcrt_platforms.h" |
| 8 | 8 |
| 9 #include "core/include/fxcrt/fx_basic.h" | 9 #include "core/fxcrt/include/fx_basic.h" |
| 10 | 10 |
| 11 #if (_FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ && \ | 11 #if (_FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ && \ |
| 12 _FXM_PLATFORM_ != _FXM_PLATFORM_LINUX_ && \ | 12 _FXM_PLATFORM_ != _FXM_PLATFORM_LINUX_ && \ |
| 13 _FXM_PLATFORM_ != _FXM_PLATFORM_APPLE_ && \ | 13 _FXM_PLATFORM_ != _FXM_PLATFORM_APPLE_ && \ |
| 14 _FXM_PLATFORM_ != _FXM_PLATFORM_ANDROID_) | 14 _FXM_PLATFORM_ != _FXM_PLATFORM_ANDROID_) |
| 15 IFXCRT_FileAccess* FXCRT_FileAccess_Create() { | 15 IFXCRT_FileAccess* FXCRT_FileAccess_Create() { |
| 16 return new CFXCRT_FileAccess_CRT; | 16 return new CFXCRT_FileAccess_CRT; |
| 17 } | 17 } |
| 18 void FXCRT_GetFileModeString(FX_DWORD dwModes, CFX_ByteString& bsMode) { | 18 void FXCRT_GetFileModeString(FX_DWORD dwModes, CFX_ByteString& bsMode) { |
| 19 if (dwModes & FX_FILEMODE_ReadOnly) { | 19 if (dwModes & FX_FILEMODE_ReadOnly) { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 FX_BOOL CFXCRT_FileAccess_CRT::Flush() { | 123 FX_BOOL CFXCRT_FileAccess_CRT::Flush() { |
| 124 if (!m_hFile) { | 124 if (!m_hFile) { |
| 125 return FALSE; | 125 return FALSE; |
| 126 } | 126 } |
| 127 return !FXSYS_fflush(m_hFile); | 127 return !FXSYS_fflush(m_hFile); |
| 128 } | 128 } |
| 129 FX_BOOL CFXCRT_FileAccess_CRT::Truncate(FX_FILESIZE szFile) { | 129 FX_BOOL CFXCRT_FileAccess_CRT::Truncate(FX_FILESIZE szFile) { |
| 130 return FALSE; | 130 return FALSE; |
| 131 } | 131 } |
| 132 #endif | 132 #endif |
| OLD | NEW |