Constant
TargetLinux
Description
Used to indicate that you are compiling code for the Linux OS.
Usage
result = TargetLinux
Part |
Type |
Description |
---|---|---|
result |
Returns True if you are compiling or running on Linux. |
Notes
When building for Raspberry Pi, TargetLinux returns True.
To detect Raspberry Pi, use these build constants:
#If TargetLinux And TargetARM And Target32bit Then
' Raspberry Pi
#Endif
Compatibility
Project Types |
All |
Operating Systems |
All |
See also
DebugBuild, XojoVersion, XojoVersionString, TargetAndroid, TargetBigEndian, TargetDesktop, TargetLittleEndian, TargetMachO, TargetMacOS, TargetMobile, TargetWeb, TargetWindows, TargetX86 constants; #If...#Endif statement.