Help Center
Help CenterFreeBASIC

__FB_LINUX__keyword

Intrinsic define set by the compiler

Intrinsic Defineskeyworddocumented

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.

Remarks

Differences from QB


  • New to FreeBASIC

See also


Example


#ifdef __FB_LINUX__

  ' ... instructions only for Linux ...

  ' ... #libpath "/usr/X11/lib" 

#else

  ' ... instructions not for Linux ...

#endif 



Reference

  • Documented in KeyPgDdfblinux.html