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

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

Issue 1132163002: Fix compilation under chromium checkouts. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Typo. Created 5 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 | no next file » | 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 184 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
185 #ifdef _NATIVE_WCHAR_T_DEFINED 185 #ifdef _NATIVE_WCHAR_T_DEFINED
186 #define FXSYS_wfopen(f, m) _wfopen((const wchar_t*)(f), (const wchar_t*)(m)) 186 #define FXSYS_wfopen(f, m) _wfopen((const wchar_t*)(f), (const wchar_t*)(m))
187 #else 187 #else
188 #define FXSYS_wfopen _wfopen 188 #define FXSYS_wfopen _wfopen
189 #endif 189 #endif
190 #else 190 #else
191 FXSYS_FILE* FXSYS_wfopen(FX_LPCWSTR filename, FX_LPCWSTR mode); 191 FXSYS_FILE* FXSYS_wfopen(FX_LPCWSTR filename, FX_LPCWSTR mode);
192 #endif 192 #endif
193 193
194 #ifdef __cplusplus
195 } // extern "C"
196 #include "../../../third_party/base/numerics/safe_conversions.h"
197 #define FXSYS_strlen(ptr) pdfium::base::checked_cast<FX_STRSIZE>(strlen(ptr))
198 #define FXSYS_wcslen(ptr) pdfium::base::checked_cast<FX_STRSIZE>(wcslen(ptr))
199 extern "C" {
200 #else
201 #define FXSYS_strlen(ptr) ((FX_STRSIZE)strlen(ptr)) 194 #define FXSYS_strlen(ptr) ((FX_STRSIZE)strlen(ptr))
202 #define FXSYS_wcslen(ptr) ((FX_STRSIZE)wcslen(ptr)) 195 #define FXSYS_wcslen(ptr) ((FX_STRSIZE)wcslen(ptr))
203 #endif
204 196
205 #define FXSYS_wcscmp wcscmp 197 #define FXSYS_wcscmp wcscmp
206 #define FXSYS_wcschr wcschr 198 #define FXSYS_wcschr wcschr
207 #define FXSYS_wcsstr wcsstr 199 #define FXSYS_wcsstr wcsstr
208 #define FXSYS_wcsncmp wcsncmp 200 #define FXSYS_wcsncmp wcsncmp
209 #define FXSYS_vswprintf vswprintf 201 #define FXSYS_vswprintf vswprintf
210 #define FXSYS_mbstowcs mbstowcs 202 #define FXSYS_mbstowcs mbstowcs
211 #define FXSYS_wcstombs wcstombs 203 #define FXSYS_wcstombs wcstombs
212 #define FXSYS_memcmp memcmp 204 #define FXSYS_memcmp memcmp
213 #define FXSYS_memcpy memcpy 205 #define FXSYS_memcpy memcpy
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 334
343 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 335 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
344 336
345 #if !defined(PRIuS) 337 #if !defined(PRIuS)
346 #define PRIuS "Iu" 338 #define PRIuS "Iu"
347 #endif 339 #endif
348 340
349 #endif 341 #endif
350 342
351 #endif 343 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698