Skip to content
Paul Squires edited this page Nov 9, 2026 · 3 revisions

Home › Intrinsic Defines › FB_DOS

FB_DOS

Intrinsic define set by the compiler

Syntax

__FB_DOS__

Description

Define without a value created at compile time if compiling for the DOS target. Default in the DOS hosted version, or active when the -target dos command line option is used. It can be used to compile parts of the program only if the target is DOS. Note: the DOS hosted version cannot compile to other targets than DOS by now.

Remarks

Differences from QB

  • New to FreeBASIC

See also

Examples

#ifdef __FB_DOS__

  ' ... instructions only for DOS ...

  ' ... INT 0x31

#else

  ' ... instructions not for DOS ...

#endif

Category: Intrinsic Defines
Kind: keyword


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally