Hi,
I have some AEL code, which interacts a lot with the underlying OS. It currently runs on Windows and I'd like to port it to Linux. But I'd like to maintain a single file, which is "smart" and picks the right calls dynamically.
So, what's the best/stable way to detect the OS in AEL?
I couldn't find a dedicated function and it looks like a getsysenv() call is required.
But what's a reliable system environment variable to test for to distinguish UNIX vs. Windows?
It's easy to pick one on my systems, but is this solution going to work on other installations, too?
Any suggestions?
Regards,
Toby
AEL has a global variable defined for this purpose, on_PC which is TRUE if running on PC, else FALSE.