JarrettBillingsley / Croc

Croc is an extensible extension language in the vein of Lua, which also wishes it were a standalone language. Also it's fun.
http://www.croc-lang.org
79 stars 12 forks source link

linux build #158

Open agraeper opened 7 years ago

agraeper commented 7 years ago

src/croc/stdlib/helpers/oscompat.cpp +885 openLibrary() is not defined for not(win32)

JarrettBillingsley commented 7 years ago

I guess I never got around to that. I haven't worked on Croc in a long time.

If you're familiar with dlopen/dlsym/dlclose, it should be easy to add linux versions of oscompat::openLibrary/closeLibrary in oscompat.cpp, and oscompat::getProc in oscompat.hpp. Should just be a matter of copying the Windows versions of those functions and changing them to use libdl instead.