summaryrefslogtreecommitdiff
path: root/upb
diff options
context:
space:
mode:
Diffstat (limited to 'upb')
-rw-r--r--upb/upb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/upb/upb.h b/upb/upb.h
index 20baaad..46bed8a 100644
--- a/upb/upb.h
+++ b/upb/upb.h
@@ -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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback