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 _FX_SYSTEM_H_ | 7 #ifndef _FX_SYSTEM_H_ |
8 #define _FX_SYSTEM_H_ | 8 #define _FX_SYSTEM_H_ |
9 #define _FX_WIN32_DESKTOP_ 1 | 9 #define _FX_WIN32_DESKTOP_ 1 |
10 #define _FX_LINUX_DESKTOP_ 4 | 10 #define _FX_LINUX_DESKTOP_ 4 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 typedef unsigned short const* FX_LPCWORD; | 88 typedef unsigned short const* FX_LPCWORD; |
89 typedef int FX_INT32; | 89 typedef int FX_INT32; |
90 typedef float FX_FLOAT; | 90 typedef float FX_FLOAT; |
91 typedef int FX_BOOL; | 91 typedef int FX_BOOL; |
92 typedef int FX_ERR; | 92 typedef int FX_ERR; |
93 #define FX_SUCCEEDED(Status) ((FX_ERR)(Status) >= 0) | 93 #define FX_SUCCEEDED(Status) ((FX_ERR)(Status) >= 0) |
94 #define FX_FAILED(Status) ((FX_ERR)(Status) < 0) | 94 #define FX_FAILED(Status) ((FX_ERR)(Status) < 0) |
95 typedef char FX_CHAR; | 95 typedef char FX_CHAR; |
96 typedef char* FX_LPSTR; | 96 typedef char* FX_LPSTR; |
97 typedef char const* FX_LPCSTR; | 97 typedef char const* FX_LPCSTR; |
| 98 #define FX_DWORD_MAX UINT_MAX |
98 typedef unsigned int FX_DWORD; | 99 typedef unsigned int FX_DWORD; |
99 typedef unsigned int* FX_LPDWORD; | 100 typedef unsigned int* FX_LPDWORD; |
100 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 101 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
101 typedef __int64 FX_INT64; | 102 typedef __int64 FX_INT64; |
102 typedef unsigned __int64 FX_UINT64; | 103 typedef unsigned __int64 FX_UINT64; |
103 #else | 104 #else |
104 typedef long long int FX_INT64; | 105 typedef long long int FX_INT64; |
105 typedef unsigned long long FX_UINT64; | 106 typedef unsigned long long FX_UINT64; |
106 #endif | 107 #endif |
107 #if _FX_WORDSIZE_ == _FX_W64_ | 108 #if _FX_WORDSIZE_ == _FX_W64_ |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 | 343 |
343 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 344 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
344 | 345 |
345 #if !defined(PRIuS) | 346 #if !defined(PRIuS) |
346 #define PRIuS "Iu" | 347 #define PRIuS "Iu" |
347 #endif | 348 #endif |
348 | 349 |
349 #endif | 350 #endif |
350 | 351 |
351 #endif | 352 #endif |
OLD | NEW |