diff options
author | HATATANI Shinta <gamaguchi@gmail.com> | 2016-11-13 13:41:54 +0900 |
---|---|---|
committer | HATATANI Shinta <gamaguchi@gmail.com> | 2016-11-13 13:41:54 +0900 |
commit | 35e174bf0e83aa199a062db960cd14236ca67c0d (patch) | |
tree | 06e106d0f5194211bea22825d7774f4c042444ff | |
parent | 5211caac97d47417ec0d1b127e50c9d6d997229c (diff) |
Fix C++11 incompatibility
-rw-r--r-- | upb/upb.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -51,8 +51,8 @@ template <int N> class InlinedEnvironment; #define UPB_NORETURN #endif -#if __STDC_VERSION__ >= 199901L -/* C99 versions. */ +#if __STDC_VERSION__ >= 199901L || __cplusplus >= 201103L +/* C99/C++11 versions. */ #include <stdio.h> #define _upb_snprintf snprintf #define _upb_vsnprintf vsnprintf |