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 #ifndef CORE_FXCRT_INCLUDE_FX_SYSTEM_H_ | 7 #ifndef CORE_FXCRT_INCLUDE_FX_SYSTEM_H_ |
8 #define CORE_FXCRT_INCLUDE_FX_SYSTEM_H_ | 8 #define CORE_FXCRT_INCLUDE_FX_SYSTEM_H_ |
9 | 9 |
10 #include <assert.h> | 10 #include <assert.h> |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 #else | 221 #else |
222 #define FXSYS_wcsicmp _wcsicmp | 222 #define FXSYS_wcsicmp _wcsicmp |
223 #define FXSYS_WideCharToMultiByte WideCharToMultiByte | 223 #define FXSYS_WideCharToMultiByte WideCharToMultiByte |
224 #define FXSYS_MultiByteToWideChar MultiByteToWideChar | 224 #define FXSYS_MultiByteToWideChar MultiByteToWideChar |
225 #define FXSYS_wcslwr _wcslwr | 225 #define FXSYS_wcslwr _wcslwr |
226 #define FXSYS_wcsupr _wcsupr | 226 #define FXSYS_wcsupr _wcsupr |
227 #endif | 227 #endif |
228 #define FXSYS_GetFullPathName GetFullPathName | 228 #define FXSYS_GetFullPathName GetFullPathName |
229 #define FXSYS_GetModuleFileName GetModuleFileName | 229 #define FXSYS_GetModuleFileName GetModuleFileName |
230 #else | 230 #else |
231 int FXSYS_GetACP(void); | 231 int FXSYS_GetACP(); |
232 char* FXSYS_itoa(int value, char* str, int radix); | 232 char* FXSYS_itoa(int value, char* str, int radix); |
233 int FXSYS_WideCharToMultiByte(uint32_t codepage, | 233 int FXSYS_WideCharToMultiByte(uint32_t codepage, |
234 uint32_t dwFlags, | 234 uint32_t dwFlags, |
235 const wchar_t* wstr, | 235 const wchar_t* wstr, |
236 int wlen, | 236 int wlen, |
237 char* buf, | 237 char* buf, |
238 int buflen, | 238 int buflen, |
239 const char* default_str, | 239 const char* default_str, |
240 int* pUseDefault); | 240 int* pUseDefault); |
241 int FXSYS_MultiByteToWideChar(uint32_t codepage, | 241 int FXSYS_MultiByteToWideChar(uint32_t codepage, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 328 |
329 // Prevent a function from ever being inlined, typically because we'd | 329 // Prevent a function from ever being inlined, typically because we'd |
330 // like it to appear in stack traces. | 330 // like it to appear in stack traces. |
331 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 331 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
332 #define NEVER_INLINE __declspec(noinline) | 332 #define NEVER_INLINE __declspec(noinline) |
333 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 333 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
334 #define NEVER_INLINE __attribute__((__noinline__)) | 334 #define NEVER_INLINE __attribute__((__noinline__)) |
335 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 335 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
336 | 336 |
337 #endif // CORE_FXCRT_INCLUDE_FX_SYSTEM_H_ | 337 #endif // CORE_FXCRT_INCLUDE_FX_SYSTEM_H_ |
OLD | NEW |