ID:1919625
 
(See the best response by Ter13.)
Is there any built in defines or other methods for detecting the operating system at compile time?

I want to specify a path to a library differently depending on the OS, but I cannot seem to find any references in the docs, or in a cursory forum search
Best response
I don't believe so. Unfortunately, DM was never really designed to work on anything but windows, so such a directive isn't included by default.
Edit:Thanks for that ter13, I may make a feature request for this then


Further to this, is there some documentation on the search semantics of byond's call operator on linux?

it seems to me that given a call(func, 'libx.so) and when stracing output it only ever searches /usr/lib/*

I.e other standard locations such as /usr/local/lib/* are never ever checked unless you explicitly set and export LD_LIBRARY_PATH to include those paths before starting DreamDaemon

Is this intended behaviour?