mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
inc/xrt: Add a header for minimally including Windows.h
This commit is contained in:
parent
3f83b1da92
commit
60b4fc2ba1
49
src/xrt/include/xrt/xrt_windows.h
Normal file
49
src/xrt/include/xrt/xrt_windows.h
Normal file
|
@ -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 <ryan.pavlik@collabora.com>
|
||||
* @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 <Windows.h>
|
||||
|
||||
#endif // XRT_OS_WINDOWS
|
Loading…
Reference in a new issue