Skip to content

Fb Bigendian

Paul Squires edited this page Sep 19, 2026 · 1 revision

Home › Intrinsic Defines › FB_BIGENDIAN

FB_BIGENDIAN

Intrinsic define set by the compiler

Syntax

__FB_BIGENDIAN__

Description

Define without a value created at compile time if compiling for a big endian target.

It can be used to compile parts of the program only if the target is big endian.

Remarks

Differences from QB

  • Did not exist in QB

Examples

#ifdef __FB_BIGENDIAN__

   '...instructions only for big endian machines

#else

  '...instructions only for little endian machines

#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