__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.

Example

#ifdef __FB_WIN32__
  ' ... instructions only for Win ...
  ' ... GetProcAddress ...
#else
  ' ... instructions not for Win ...
#endif 


Differences from QB

  • New to FreeBASIC

See also