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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 FX_LPCSTR FXSYS_i64toa(FX_INT64 value, FX_LPSTR str, int radix); | 269 FX_LPCSTR FXSYS_i64toa(FX_INT64 value, FX_LPSTR str, int radix); |
270 FX_LPCWSTR FXSYS_i64tow(FX_INT64 value, FX_LPWSTR str, int radix); | 270 FX_LPCWSTR FXSYS_i64tow(FX_INT64 value, FX_LPWSTR str, int radix); |
271 int FXSYS_round(FX_FLOAT f); | 271 int FXSYS_round(FX_FLOAT f); |
272 #define FXSYS_Mul(a, b) ((a) * (b)) | 272 #define FXSYS_Mul(a, b) ((a) * (b)) |
273 #define FXSYS_Div(a, b) ((a) / (b)) | 273 #define FXSYS_Div(a, b) ((a) / (b)) |
274 #define FXSYS_MulDiv(a, b, c) ((a) * (b) / (c)) | 274 #define FXSYS_MulDiv(a, b, c) ((a) * (b) / (c)) |
275 #define FXSYS_sqrt2(a, b) (FX_FLOAT)FXSYS_sqrt((a)*(a) + (b)*(b)) | 275 #define FXSYS_sqrt2(a, b) (FX_FLOAT)FXSYS_sqrt((a)*(a) + (b)*(b)) |
276 #ifdef __cplusplus | 276 #ifdef __cplusplus |
277 }; | 277 }; |
278 | 278 |
279 #if defined(__clang__) || defined(_MSC_VER) | 279 #if defined(__clang__) || _MSC_VER >= 1700 |
280 #define FX_FINAL final | 280 #define FX_FINAL final |
281 #elif defined(__GNUC__) && __cplusplus >= 201103 && \ | 281 #elif defined(__GNUC__) && __cplusplus >= 201103 && \ |
282 (__GNUC__ * 10000 + __GNUC_MINOR__ * 100) >= 40700 | 282 (__GNUC__ * 10000 + __GNUC_MINOR__ * 100) >= 40700 |
283 #define FX_FINAL final | 283 #define FX_FINAL final |
284 #else | 284 #else |
285 #define FX_FINAL | 285 #define FX_FINAL |
286 #endif | 286 #endif |
287 #endif | 287 #endif |
288 #endif | 288 #endif |
OLD | NEW |