How can one enable platform specific features in Lua?

How can one enable platform specific features in Lua?

By default Lua doesn’t have the library calls for things like io.popen which are specific to the operating system.

So for us - what is the best way to enable operating system specific features?

  • We can modify luaconf.h and check for WIN32, what ever the linux and mac defines are and switch on the rules.