Skip to content

Fb Win32

Paul Squires edited this page Nov 9, 2026 · 5 revisions

Home › Intrinsic Defines › FB_WIN32

FB_WIN32

Intrinsic define set by the compiler

Syntax

__FB_WIN32__

Description

Define without a value created at compile time if compiling to the Win (32-bit or 64-bit) target. Default in Win hosted version, or active if the -target win32 or -target win64 command line option is used. It can be used to compile parts of the program only if the target is Win.

Remarks

In tiko: the define itself is unchanged — it still names the operating system, not the word size, and is set for the Windows target, windows-x86_64. There is no -target win32: tiko is x86-64 only. See Compatibility.

Differences from QB

  • New to FreeBASIC

See also

Examples

#ifdef __FB_WIN32__

  ' ... instructions only for Win ...

  ' ... GetProcAddress ...

#else

  ' ... instructions not for Win ...

#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