From 805f95eac61ef17d7ec3f87dda1dfbc932951dee Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 4 Sep 2013 10:06:07 +0000 Subject: remove the dependency on the HAVE_STATEMENT_EXPRESSIONS flag. This reduces the dependency on the ./configure script --- src/runtime/c/gu/string.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/runtime/c/gu/string.c') diff --git a/src/runtime/c/gu/string.c b/src/runtime/c/gu/string.c index 6f91e0a27..1a53c3a28 100644 --- a/src/runtime/c/gu/string.c +++ b/src/runtime/c/gu/string.c @@ -20,9 +20,10 @@ gu_string_buf(GuPool* pool) GuBuf* buf = gu_new_buf(uint8_t, pool); GuOut* out = gu_buf_out(buf, pool); GuWriter* wtr = gu_new_utf8_writer(out, pool); - return gu_new_s(pool, GuStringBuf, - .bbuf = buf, - .wtr = wtr); + GuStringBuf* sbuf = gu_new(GuStringBuf, pool); + sbuf->bbuf = buf; + sbuf->wtr = wtr; + return sbuf; } GuWriter* -- cgit v1.2.3