MACRO
OMNI_OS_IGNORE - Do not attempt to guess the OS type based on compiler macros.
SYNOPSIS top
Signifies to not use preprocessor macros to attempt to discover what OS is being compiled for.
#define OMNI_OS_IGNORESignifies to not use preprocessor macros to attempt to discover what OS is being compiled for.
DESCRIPTION top
By specifying the
Current values used by the framework to determine which sections of code to use are as follows:
Defining one of the above will also result in the framework being compiled as if it were being compiled on that platform.
If one of the values is not specified the system defaults to a POSIX based platform.
By specifying the
OMNI_OS_IGNORE preprocessor flag, the framework will not attempt to detect what OS is being compiled against via certain preprocessor flags and instead the user can specify what OS to compile for (useful for cross platform compilation).Current values used by the framework to determine which sections of code to use are as follows:
OMNI_OS_WINOMNI_OS_APPLEOMNI_OS_FREEBSDOMNI_OS_SOLARISOMNI_OS_BSDDefining one of the above will also result in the framework being compiled as if it were being compiled on that platform.
If one of the values is not specified the system defaults to a POSIX based platform.
CONSIDERATIONS top
If you explicitly define one of the OMNI_OS_ flags (such as
If you explicitly define one of the OMNI_OS_ flags (such as
OMNI_OS_BSD), you must take note of which API are being referenced and built against.
PLATFORM SPECIFIC top
This flag is not platform specific but can be used to determine what platform to be compiled for (default POSIX if
This flag is not platform specific but can be used to determine what platform to be compiled for (default POSIX if
OMNI_OS_IGNORE is defined and no other platforms defined).