#91
`_KERNEL_MODE` shouldn't be used to detect drivers
The MSVC /kernel option says:
The /kernel option and the /driver option operate independently. They have no effect on each other.
As such, using it to detect being in a driver is invalid and causes errors due to wdk.h not being there while building with /kernel in usermode.
This should be changed to detect the need for driver headers in some other way or an opt-out option should be provided.
/kerneldisables C++ exception handling, RTTI,new/deleteoperators but it also defines_KERNEL_MODEand I think settingZYAN_KERNELbased on that is perfectly fine.We have opt-out via
ZYAN_NO_LIBC. You can define it to prevent Zycore from accessing "standard" headers. Different sets of headers are required for user-mode and kernel (there are platform-specific requirements as well).