Fix building on Linux.

This commit is contained in:
TSnake41 2020-03-29 15:41:54 +02:00
parent 99a4f8b6ea
commit 96d1a00ac9
3 changed files with 24 additions and 22 deletions

View File

@ -11,6 +11,8 @@ MODULES := rlgl physac
ifeq ($(OS),Windows_NT)
LDFLAGS += -lopengl32 -lgdi32 -lwinmm -static
else
LDFLAGS += -ldl -lX11 -lpthread
endif
BOOT_FILES := src/raylib.lua src/raylua.lua

View File

@ -77,8 +77,8 @@ for _,modname in ipairs(modules) do
end)
-- Strip spaces
line = line:gsub("([(),*.]) +(%w)", function (a, b) return a .. b end)
line = line:gsub("(%w) +([(),*.])", function (a, b) return a .. b end)
line = line:gsub("([(),*.])%s+(%w)", function (a, b) return a .. b end)
line = line:gsub("(%w)%s+([(),*.])", function (a, b) return a .. b end)
proto[#proto + 1] = line:gsub(";", "")
end