diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-03-30 13:51:31 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-30 21:19:09 +0000 |
commit | bf9104d5825d9f62b59106d69edebb1b5bdd48da (patch) | |
tree | e273a4a0467b962f0eaaf8bf040e27e2c0e58f6b /core/fxcrt/fx_system.h | |
parent | bd9237eb346946b0caa291504c3a5f54e9b1bb3f (diff) | |
download | pdfium-bf9104d5825d9f62b59106d69edebb1b5bdd48da.tar.xz |
vswprintf() part 1: move code, create helper function.
Change-Id: Iec9c3bb850b1654c67ac3081e557842f1eafd604
Reviewed-on: https://pdfium-review.googlesource.com/3431
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_system.h')
-rw-r--r-- | core/fxcrt/fx_system.h | 10 |
1 files changed, 10 insertions, 0 deletions
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_ |