MACRO
OMNI_NO_WIN_API
- Use the Microsoft C Runtime Library where applicable.
SYNOPSIS top
Signifies to use the Microsoft C Runtime Library where applicable.
#define OMNI_NO_WIN_API
Signifies to use the Microsoft C Runtime Library where applicable.
DESCRIPTION top
By specifying the
By specifying the
OMNI_NO_WIN_API
preprocessor flag, the library will not use WinAPI calls but use their CRT equivalents instead; _beginthreadex
over calling CreateThread
for example.
CONSIDERATIONS top
This flag changes the underlying API's called for certain areas of code on a Windows build, this can effect the overall system due to the CRT being used. It is highly advised you understand those area's of code affected by this flag to ensure you need (or don't need) this compile time flag.
This flag changes the underlying API's called for certain areas of code on a Windows build, this can effect the overall system due to the CRT being used. It is highly advised you understand those area's of code affected by this flag to ensure you need (or don't need) this compile time flag.
PLATFORM SPECIFIC top
This flag only applies to a Windows based build; it has no affect on the library if compiled for different platform.
This flag only applies to a Windows based build; it has no affect on the library if compiled for different platform.
NOTES top
Some calls require that a WinAPI call be made,
Some calls require that a WinAPI call be made,
_beginthreadex
for example, still requires that CloseHandle
be called. To that extent, even if this flag is enabled not all WinAPI calls will be eliminated, merely key ones swapped for their CRT versions.