From 4d9c39b94d498e8a3ad2fb4966833092579ed038 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 9 Jul 2009 11:10:16 -0700 Subject: Make benchmark run out-of-the-box. --- src/upb_parse.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/upb_parse.h') diff --git a/src/upb_parse.h b/src/upb_parse.h index d9db85c..4600c04 100644 --- a/src/upb_parse.h +++ b/src/upb_parse.h @@ -104,7 +104,9 @@ typedef void (*upb_submsg_end_cb)(struct upb_parse_state *s); * where user_data has as many bytes allocated as specified when initialized. */ struct upb_parse_stack_frame { size_t end_offset; /* 0 indicates that this is a group. */ +#ifndef __cplusplus /* Temporary hack since C++ doesn't support flex arrays. */ char user_data[]; +#endif }; struct upb_parse_state { -- cgit v1.2.3