From f2ca50ffa2d26a6c023add24e92adbe6b28bfcc9 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 12 Sep 2017 14:49:29 -0700 Subject: Avoid double va_list traversal in CFX_WideString::FormatV Speculative fix for bug. Also remove FX_VA_COPY as va_copy should be fine on all ports nowdays (we think). Bug: 763965 Change-Id: I5c321d5624d00b3b2f262ec599e4382f02b744ff Reviewed-on: https://pdfium-review.googlesource.com/13790 Commit-Queue: Lei Zhang Reviewed-by: Lei Zhang --- core/fxcrt/fx_system.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'core/fxcrt/fx_system.h') diff --git a/core/fxcrt/fx_system.h b/core/fxcrt/fx_system.h index 600d71c72b..7a95bf4fd0 100644 --- a/core/fxcrt/fx_system.h +++ b/core/fxcrt/fx_system.h @@ -263,13 +263,4 @@ int FXSYS_round(float f); #define NEVER_INLINE __attribute__((__noinline__)) #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ -// Handle differnces between platform's variadic function implementations. -#if defined(__ARMCC_VERSION) || \ - (!defined(_MSC_VER) && (_FX_CPU_ == _FX_X64_ || _FX_CPU_ == _FX_IA64_ || \ - _FX_CPU_ == _FX_ARM64_)) -#define FX_VA_COPY(dst, src) va_copy((dst), (src)) -#else -#define FX_VA_COPY(dst, src) ((dst) = (src)) -#endif - #endif // CORE_FXCRT_FX_SYSTEM_H_ -- cgit v1.2.3