#pragma once #ifdef _WIN32 #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #ifndef NOMINMAX #define NOMINMAX #endif #ifdef _XBOX #include extern "C" void _ReadWriteBarrier(); #pragma intrinsic(_ReadWriteBarrier) extern "C" void _WriteBarrier(); #pragma intrinsic(_WriteBarrier) extern "C" void _ReadBarrier(); #pragma intrinsic(_ReadBarrier) #else #include #endif #undef min #undef max #endif