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 CORE_INCLUDE_FXCRT_FX_SYSTEM_H_ |
8 #define _FX_SYSTEM_H_ | 8 #define CORE_INCLUDE_FXCRT_FX_SYSTEM_H_ |
9 | 9 |
10 #define _FX_WIN32_DESKTOP_ 1 | 10 #define _FX_WIN32_DESKTOP_ 1 |
11 #define _FX_LINUX_DESKTOP_ 4 | 11 #define _FX_LINUX_DESKTOP_ 4 |
12 #define _FX_MACOSX_ 7 | 12 #define _FX_MACOSX_ 7 |
13 #define _FX_ANDROID_ 12 | 13 #define _FX_ANDROID_ 12 |
14 | 14 |
15 #define _FXM_PLATFORM_WINDOWS_ 1 | 15 #define _FXM_PLATFORM_WINDOWS_ 1 |
16 #define _FXM_PLATFORM_LINUX_ 2 | 16 #define _FXM_PLATFORM_LINUX_ 2 |
17 #define _FXM_PLATFORM_APPLE_ 3 | 17 #define _FXM_PLATFORM_APPLE_ 3 |
18 #define _FXM_PLATFORM_ANDROID_ 4 | 18 #define _FXM_PLATFORM_ANDROID_ 4 |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 #endif // _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 352 #endif // _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
353 | 353 |
354 // Prevent a function from ever being inlined, typically because we'd | 354 // Prevent a function from ever being inlined, typically because we'd |
355 // like it to appear in stack traces. | 355 // like it to appear in stack traces. |
356 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 356 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
357 #define NEVER_INLINE __declspec(noinline) | 357 #define NEVER_INLINE __declspec(noinline) |
358 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 358 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
359 #define NEVER_INLINE __attribute__((__noinline__)) | 359 #define NEVER_INLINE __attribute__((__noinline__)) |
360 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ | 360 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ |
361 | 361 |
362 #endif // _FX_SYSTEM_H_ | 362 #endif // CORE_INCLUDE_FXCRT_FX_SYSTEM_H_ |
OLD | NEW |