• 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
Name
Last commit
Last update
3rdparty/include/linux Loading commit data...
golang Loading commit data...
gpython Loading commit data...
.gitignore Loading commit data...
CHANGELOG.rst Loading commit data...
COPYING Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
pyproject.toml Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...
trun Loading commit data...