lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




Le jeu. 23 sept. 2021 à 23:38, Scott Morgan <blumf@blueyonder.co.uk> a écrit :
I want to append to package.cpath from the C side of my app, what's the
best way to know if you need the '?.dll' or '?.so' file extension?

Should I just rely on #ifdef WIN32?


Lua itself uses `#ifdef _WIN32`, see https://github.com/lua/lua/blob/master/luaconf.h#L246

François
 
Scott