From ad9aee30e004f8ebd235a69aeb27e8ef463e5e32 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 16 Oct 2014 12:36:08 -0700 Subject: [PATCH] Fix travis build Don't use C99 struct literal syntax in debugger header, because it's included by the tests, which are c++ --- src/runtime/debugger.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/debugger.h b/src/runtime/debugger.h index 2bf212d1..d6ec1737 100644 --- a/src/runtime/debugger.h +++ b/src/runtime/debugger.h @@ -8,7 +8,8 @@ extern "C" { #include "tree_sitter/runtime.h" static inline TSDebugger ts_debugger_null() { - return (TSDebugger) { .data = NULL, .debug_fn = NULL, .release_fn = NULL, }; + TSDebugger debugger = { 0, 0, 0 }; + return debugger; } #ifdef __cplusplus