OMNI_OS_IGNORE
MACRO

OMNI_OS_IGNORE - Do not attempt to guess the OS type based on compiler macros.

SYNOPSIS top

#define OMNI_OS_IGNORE

Signifies to not use preprocessor macros to attempt to discover what OS is being compiled for.

DESCRIPTION top

By specifying the OMNI_OS_IGNORE preprocessor flag, the library 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 library to determine which sections of code to use are as follows:

OMNI_OS_WIN
OMNI_OS_APPLE
OMNI_OS_FREEBSD
OMNI_OS_SOLARIS
OMNI_OS_BSD

Defining one of the above will also result in the library 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 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 OMNI_OS_IGNORE is defined and no other platforms defined).

NOTES top

None.