Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Side by Side Diff: core/include/fxcrt/fx_system.h

Issue 294353002: Fix warnings in android build, fix font rendering issue, fix issue 357588: wrong characters represe… (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Patch Set after rebase Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 21 matching lines...) Expand all
32 #if !defined(_FX_OS_) || _FX_OS_ == 0 32 #if !defined(_FX_OS_) || _FX_OS_ == 0
33 #error Sorry, can not figure out what OS you are targeting to. Please specify _F X_OS_ macro. 33 #error Sorry, can not figure out what OS you are targeting to. Please specify _F X_OS_ macro.
34 #endif 34 #endif
35 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 35 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
36 #define _CRT_SECURE_NO_WARNINGS 36 #define _CRT_SECURE_NO_WARNINGS
37 #include <windows.h> 37 #include <windows.h>
38 #endif 38 #endif
39 #define _FX_W32_ 1 39 #define _FX_W32_ 1
40 #define _FX_W64_ 2 40 #define _FX_W64_ 2
41 #ifndef _FX_WORDSIZE_ 41 #ifndef _FX_WORDSIZE_
42 #if defined(_WIN64) || defined(__arm64) || defined(__arm64__) || defined(_M_AMD6 4) || defined(_M_X64) || defined(_M_IA64) || defined(__powerpc64__) || defined(_ _x86_64__) || __WORDSIZE == 64 42 #if defined(_WIN64) || defined(__arm64) || defined(__arm64__) || defined(_M_AMD6 4) || defined(_M_X64) || defined(_M_IA64) || defined(__powerpc64__) || defined(_ _x86_64__) || __WORDSIZE == 64 || defined(__LP64__)
43 #define _FX_WORDSIZE_ _FX_W64_ 43 #define _FX_WORDSIZE_ _FX_W64_
44 #else 44 #else
45 #define _FX_WORDSIZE_ _FX_W32_ 45 #define _FX_WORDSIZE_ _FX_W32_
46 #endif 46 #endif
47 #endif 47 #endif
48 #include <stddef.h> 48 #include <stddef.h>
49 #include <stdarg.h> 49 #include <stdarg.h>
50 #include <setjmp.h> 50 #include <setjmp.h>
51 #include <stdlib.h> 51 #include <stdlib.h>
52 #include <stdio.h> 52 #include <stdio.h>
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 #endif 278 #endif
279 #endif 279 #endif
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698