q66 / cffi-lua

A portable C FFI for Lua 5.1+
MIT License
176 stars 24 forks source link

src/platform.hh: fix or1k build #47

Closed ffontaine closed 3 months ago

ffontaine commented 3 months ago

Fix the following or1k build failure raised since version 0.2.2 and https://github.com/q66/cffi-lua/commit/27755f61e4c625dff951302bade4ad07e3609ca5:

In file included from /home/buildroot/autobuild/run/instance-0/output-1/host/or1k-buildroot-linux-uclibc/sysroot/usr/include/lua.hpp:6,
                 from ../src/lua.hh:23,
                 from ../src/parser.hh:4,
                 from ../src/ffilib.cc:7:
../src/ffilib.cc: In static member function 'static void ffi_module::setup(lua_State*)': ../src/ffilib.cc:1616:28: error: expected ')' before 'FFI_ARCH_NAME'
 1616 |         lua_pushliteral(L, FFI_ARCH_NAME);
      |                            ^~~~~~~~~~~~~

Fixes: 27755f61e4c625dff951302bade4ad07e3609ca5