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

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

Issue 1836443002: Re-enable warning 4005 and remove _CRT_SECURE_NO_WARNINGS (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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 | « BUILD.gn ('k') | pdfium.gyp » ('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_FXCRT_INCLUDE_FX_SYSTEM_H_ 7 #ifndef CORE_FXCRT_INCLUDE_FX_SYSTEM_H_
8 #define CORE_FXCRT_INCLUDE_FX_SYSTEM_H_ 8 #define CORE_FXCRT_INCLUDE_FX_SYSTEM_H_
9 9
10 #include <assert.h> 10 #include <assert.h>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #define _FX_OS_ _FX_MACOSX_ 47 #define _FX_OS_ _FX_MACOSX_
48 #define _FXM_PLATFORM_ _FXM_PLATFORM_APPLE_ 48 #define _FXM_PLATFORM_ _FXM_PLATFORM_APPLE_
49 #endif 49 #endif
50 #endif // _FX_OS_ 50 #endif // _FX_OS_
51 51
52 #if !defined(_FX_OS_) || _FX_OS_ == 0 52 #if !defined(_FX_OS_) || _FX_OS_ == 0
53 #error Sorry, can not figure out target OS. Please specify _FX_OS_ macro. 53 #error Sorry, can not figure out target OS. Please specify _FX_OS_ macro.
54 #endif 54 #endif
55 55
56 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 56 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
57 #define _CRT_SECURE_NO_WARNINGS
58 #include <windows.h> 57 #include <windows.h>
59 #include <sal.h> 58 #include <sal.h>
60 #endif 59 #endif
61 60
62 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ 61 #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_
63 #include <Carbon/Carbon.h> 62 #include <Carbon/Carbon.h>
64 #include <libkern/OSAtomic.h> 63 #include <libkern/OSAtomic.h>
65 #endif 64 #endif
66 65
67 #ifdef __cplusplus 66 #ifdef __cplusplus
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 306
308 // Prevent a function from ever being inlined, typically because we'd 307 // Prevent a function from ever being inlined, typically because we'd
309 // like it to appear in stack traces. 308 // like it to appear in stack traces.
310 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 309 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
311 #define NEVER_INLINE __declspec(noinline) 310 #define NEVER_INLINE __declspec(noinline)
312 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 311 #else // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
313 #define NEVER_INLINE __attribute__((__noinline__)) 312 #define NEVER_INLINE __attribute__((__noinline__))
314 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 313 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
315 314
316 #endif // CORE_FXCRT_INCLUDE_FX_SYSTEM_H_ 315 #endif // CORE_FXCRT_INCLUDE_FX_SYSTEM_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | pdfium.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698