• Kirill Smelkov's avatar
    libgolang: Fix build with old gcc · 77719d8a
    Kirill Smelkov authored
    Gcc 5.4 from Ubuntu 16.04 LTS complains e.g.
    
        ./golang/libgolang.h: In function ‘golang::_selcase golang::_selrecv_(golang::_chan*, void*, bool*)’:
        ./golang/libgolang.h:227:5: sorry, unimplemented: non-trivial designated initializers not supported
             };
             ^
    
    The problem started to appear after 47111d3e (libgolang: Teach select to accept
    inplace tx data) when we moved _selcase.ptxrx inside union.
    
    Let's add workaround for older compilers, even though e.g. gcc 8.3 from Debian
    10 accepts existing code just fine.
    77719d8a
libgolang.h 17.1 KB