| 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 "xfa/src/fgas/crt/fgas_system.h" | 7 #include "xfa/fgas/crt/fgas_system.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "core/include/fxcrt/fx_system.h" | 11 #include "core/include/fxcrt/fx_system.h" |
| 12 | 12 |
| 13 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN32_MOBILE_ || \ | 13 #if _FX_OS_ == _FX_WIN32_DESKTOP_ || _FX_OS_ == _FX_WIN32_MOBILE_ || \ |
| 14 _FX_OS_ == _FX_WIN64_ | 14 _FX_OS_ == _FX_WIN64_ |
| 15 #include <io.h> | 15 #include <io.h> |
| 16 #elif _FX_OS_ == _FX_LINUX_DESKTOP_ || _FX_OS_ == _FX_LINUX_Mini_ | 16 #elif _FX_OS_ == _FX_LINUX_DESKTOP_ || _FX_OS_ == _FX_LINUX_Mini_ |
| 17 #include <sys/times.h> | 17 #include <sys/times.h> |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } else { | 108 } else { |
| 109 break; | 109 break; |
| 110 } | 110 } |
| 111 } | 111 } |
| 112 } | 112 } |
| 113 if (pUsedLen) { | 113 if (pUsedLen) { |
| 114 *pUsedLen = iUsedLen; | 114 *pUsedLen = iUsedLen; |
| 115 } | 115 } |
| 116 return bNegtive ? -fValue : fValue; | 116 return bNegtive ? -fValue : fValue; |
| 117 } | 117 } |
| OLD | NEW |