Code: Select all
If OSVersion()<=#PB_OS_Linux_Future
MessageRequester("OS","Linux")
EndIf
Code: Select all
If OSVersion()<=#PB_OS_Windows_Future
MessageRequester("OS","Windows")
EndIf
BHH
P.S. i compile the code on windows and linux box
Code: Select all
If OSVersion()<=#PB_OS_Linux_Future
MessageRequester("OS","Linux")
EndIf
Code: Select all
If OSVersion()<=#PB_OS_Windows_Future
MessageRequester("OS","Windows")
EndIf
Code: Select all
CompilerIf #PB_Compiler_OS = #PB_OS_Linux
If OSVersion()<=#PB_OS_Linux_Future
MessageRequester("OS","Linux")
EndIf
CompilerElse
If OSVersion()<=#PB_OS_Windows_Future
MessageRequester("OS","Windows")
EndIf
CompilerEndIf
How the hell should that work? It would mess up all calculations in the world.buzzqw wrote:the first command should be true only on a Linux box...
No linux, right? So on a windows platform, it will not output linux constants.windows help wrote: #PB_OS_Windows_NT3_51
#PB_OS_Windows_95
#PB_OS_Windows_NT_4
#PB_OS_Windows_98
#PB_OS_Windows_ME
#PB_OS_Windows_2000
#PB_OS_Windows_XP
#PB_OS_Windows_Server_2003
#PB_OS_Windows_Vista
#PB_OS_Windows_Server_2008
#PB_OS_Windows_7
#PB_OS_Windows_Future
Code: Select all
CompilerIf #PB_Compiler_OS = #PB_OS_Linux
MessageRequester("OS","Linux")
CompilerElse
MessageRequester("OS","Windows")
CompilerEndIf