diff --git a/src/xrt/include/xrt/xrt_windows.h b/src/xrt/include/xrt/xrt_windows.h new file mode 100644 index 000000000..cbddb88cf --- /dev/null +++ b/src/xrt/include/xrt/xrt_windows.h @@ -0,0 +1,49 @@ +// Copyright 2020, Collabora, Ltd. +// SPDX-License-Identifier: BSL-1.0 +/*! + * @file + * @brief A minimal way to include Windows.h. + * @author Ryan Pavlik + * @ingroup xrt_iface + */ + +#pragma once + +#include "xrt_config_os.h" + +#ifdef XRT_OS_WINDOWS +#ifndef NOBITMAP +#define NOBITMAP +#endif // !NOBITMAP + +#ifndef NODRAWTEXT +#define NODRAWTEXT +#endif // !NODRAWTEXT + +#ifndef NOGDI +#define NOGDI +#endif // !NOGDI + +#ifndef NOHELP +#define NOHELP +#endif // !NOHELP + +#ifndef NOMCX +#define NOMCX +#endif // !NOMCX + +#ifndef NOMINMAX +#define NOMINMAX +#endif // !NOMINMAX + +#ifndef NOSERVICE +#define NOSERVICE +#endif // !NOSERVICE + +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#endif // !WIN32_LEAN_AND_MEAN + +#include + +#endif // XRT_OS_WINDOWS