diff options
author | Josh Haberman <jhaberman@gmail.com> | 2015-06-06 16:27:40 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2015-06-06 16:27:40 -0700 |
commit | d9485c28ed42df3f1a418f446203c780b6e31e3a (patch) | |
tree | eab2f13454fefa2961cb3ce40270ba59e2179c16 /upb/upb.h | |
parent | 19a973a85ef5a2eaf1ca59d09ec2d6e972c0cd24 (diff) |
Fix for va_copy.
Diffstat (limited to 'upb/upb.h')
-rw-r--r-- | upb/upb.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -52,12 +52,14 @@ #ifdef __GNUC__ #define _upb_snprintf __builtin_snprintf #define _upb_vsnprintf __builtin_vsnprintf +#define _upb_va_copy(a, b) __va_copy(a, b) #elif __STDC_VERSION__ >= 199901L /* C99 versions. */ #define _upb_snprintf snprintf #define _upb_vsnprintf vsnprintf +#define _upb_va_copy(a, b) va_copy(a, b) #else -#error Need implementations of [v]snprintf +#error Need implementations of [v]snprintf and va_copy #endif |