From bf9104d5825d9f62b59106d69edebb1b5bdd48da Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 30 Mar 2017 13:51:31 -0700 Subject: vswprintf() part 1: move code, create helper function. Change-Id: Iec9c3bb850b1654c67ac3081e557842f1eafd604 Reviewed-on: https://pdfium-review.googlesource.com/3431 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- core/fxcrt/fx_system.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/fxcrt/fx_system.h') diff --git a/core/fxcrt/fx_system.h b/core/fxcrt/fx_system.h index 94fc20050a..a99a18a332 100644 --- a/core/fxcrt/fx_system.h +++ b/core/fxcrt/fx_system.h @@ -320,4 +320,14 @@ 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_)) || \ + defined(__native_client__) +#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