OS Function
Posted: Tue Nov 04, 2003 7:28 pm
Is there a function that can report if you are using the linux or the windows compiler? So somethings that you are forced to use API for or other things, can be optional like:
#If GetOS() = Linux
LoadLibrary(0, "MyLINUXFunction.so")
#Else
LoadLibrary(0, "MyWindowsFunction.DLL")
#EndIf
Failing that, does anyone know how to detect if you are in linux, or windows? I dont want to keep two separate source copies just to compile on two separate OS's
#If GetOS() = Linux
LoadLibrary(0, "MyLINUXFunction.so")
#Else
LoadLibrary(0, "MyWindowsFunction.DLL")
#EndIf
Failing that, does anyone know how to detect if you are in linux, or windows? I dont want to keep two separate source copies just to compile on two separate OS's