Skip to content

FB_LINUX ​


Intrinsic define set by the compiler

Syntax ​

` FB_LINUX

`

Description ​

Define without a value created at compile time when compiling to the Linux target. Default in the Linux hosted version of the compiler, or active when the -target linux command line option is used. It can be used to compile parts of the program only if the target is Linux.

Examples ​

start GeSHi

vb
#IFDEF __FB_LINUX__
  ' ... instructions only for Linux ...
  ' ... #libpath "/usr/X11/lib"
#ELSE
  ' ... instructions not for Linux ...
#ENDIF

end GeSHi

Differences from QB ​

  • New to FreeBASIC

See also ​

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft