From b2bbafb67457835c4cf9061610ea9549740669c2 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 7 Jul 2009 19:51:53 -0700 Subject: Header file changes for C++ compatibility. --- upb_string.h | 1 + 1 file changed, 1 insertion(+) (limited to 'upb_string.h') diff --git a/upb_string.h b/upb_string.h index 44bc653..7a05811 100644 --- a/upb_string.h +++ b/upb_string.h @@ -65,6 +65,7 @@ bool upb_strreadfile(const char *filename, struct upb_string *data); /* Allows defining upb_strings as literals, ie: * struct upb_string str = UPB_STRLIT("Hello, World!\n"); + * Doesn't work with C++ due to lack of struct initializer syntax. */ #define UPB_STRLIT(strlit) {.ptr=strlit, .byte_len=sizeof(strlit)-1} -- cgit v1.2.3