Skip to content

Fb Darwin

Paul Squires edited this page Oct 29, 2026 · 2 revisions

Home › Intrinsic Defines › FB_DARWIN

FB_DARWIN

Intrinsic define set by the compiler

Syntax

__FB_DARWIN__

Description

Define without a value, created when compiling for macOS: the macos-arm64 target, the default on a Mac, or -target macos-arm64 on any host. It can be used to compile parts of the program only for macOS.

__FB_UNIX__, __FB_ARM__ and __FB_64BIT__ are defined with it; __FB_LINUX__ and __FB_X86__ are not. TIKO_OS_MACOS is tiko's own name for the same test.

Remarks

Differences from QB

  • New to FreeBASIC

See also

Examples

#ifdef __FB_DARWIN__

  '...instructions only for macOS...

#else

  '...instructions not for macOS...

#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