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

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

Issue 1425153006: Fix all relative includes to third_party. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month 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 | « core/include/fxcrt/fx_safe_types.h ('k') | core/include/fxge/fx_font.h » ('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 CORE_INCLUDE_FXCRT_FX_SYSTEM_H_ 7 #ifndef CORE_INCLUDE_FXCRT_FX_SYSTEM_H_
8 #define CORE_INCLUDE_FXCRT_FX_SYSTEM_H_ 8 #define CORE_INCLUDE_FXCRT_FX_SYSTEM_H_
9 9
10 #include <assert.h> 10 #include <assert.h>
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 #define FXSYS_wfopen(f, m) _wfopen((const wchar_t*)(f), (const wchar_t*)(m)) 153 #define FXSYS_wfopen(f, m) _wfopen((const wchar_t*)(f), (const wchar_t*)(m))
154 #else 154 #else
155 #define FXSYS_wfopen _wfopen 155 #define FXSYS_wfopen _wfopen
156 #endif 156 #endif
157 #else 157 #else
158 FXSYS_FILE* FXSYS_wfopen(const FX_WCHAR* filename, const FX_WCHAR* mode); 158 FXSYS_FILE* FXSYS_wfopen(const FX_WCHAR* filename, const FX_WCHAR* mode);
159 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 159 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
160 160
161 #ifdef __cplusplus 161 #ifdef __cplusplus
162 } // extern "C" 162 } // extern "C"
163 #include "../../../third_party/base/numerics/safe_conversions.h" 163 #include "third_party/base/numerics/safe_conversions.h"
164 #define FXSYS_strlen(ptr) pdfium::base::checked_cast<FX_STRSIZE>(strlen(ptr)) 164 #define FXSYS_strlen(ptr) pdfium::base::checked_cast<FX_STRSIZE>(strlen(ptr))
165 #define FXSYS_wcslen(ptr) pdfium::base::checked_cast<FX_STRSIZE>(wcslen(ptr)) 165 #define FXSYS_wcslen(ptr) pdfium::base::checked_cast<FX_STRSIZE>(wcslen(ptr))
166 extern "C" { 166 extern "C" {
167 #else 167 #else
168 #define FXSYS_strlen(ptr) ((FX_STRSIZE)strlen(ptr)) 168 #define FXSYS_strlen(ptr) ((FX_STRSIZE)strlen(ptr))
169 #define FXSYS_wcslen(ptr) ((FX_STRSIZE)wcslen(ptr)) 169 #define FXSYS_wcslen(ptr) ((FX_STRSIZE)wcslen(ptr))
170 #endif 170 #endif
171 171
172 #define FXSYS_wcscmp wcscmp 172 #define FXSYS_wcscmp wcscmp
173 #define FXSYS_wcschr wcschr 173 #define FXSYS_wcschr wcschr
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 // Prevent a function from ever being inlined, typically because we'd 315 // Prevent a function from ever being inlined, typically because we'd
316 // like it to appear in stack traces. 316 // like it to appear in stack traces.
317 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 317 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
318 #define NEVER_INLINE __declspec(noinline) 318 #define NEVER_INLINE __declspec(noinline)
319 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 319 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
320 #define NEVER_INLINE __attribute__((__noinline__)) 320 #define NEVER_INLINE __attribute__((__noinline__))
321 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 321 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
322 322
323 #endif // CORE_INCLUDE_FXCRT_FX_SYSTEM_H_ 323 #endif // CORE_INCLUDE_FXCRT_FX_SYSTEM_H_
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_safe_types.h ('k') | core/include/fxge/fx_font.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698