#pragma once // include the windows.h header in a way that won't break anything that isn't // aware of microsoft's propensity to grab large swathes of common terms. #if defined(_WINDOWS_) #error "windows headers have already been included" #endif #define WIN32_LEAN_AND_MEAN #include // undefine a bunch of conflicting names. #if defined(near) #undef near #endif #if defined(far) #undef far #endif #if defined(NEAR) #undef NEAR #endif #if defined(FAR) #undef FAR #endif #if defined(OPAQUE) #undef OPAQUE #endif