Monado OpenXR Runtime
include
xrt
xrt_config_os.h
Go to the documentation of this file.
1
// Copyright 2019, Collabora, Ltd.
2
// SPDX-License-Identifier: BSL-1.0
3
/*!
4
* @file
5
* @brief Auto detect OS and certain features.
6
* @author Jakob Bornecrantz <jakob@collabora.com>
7
* @ingroup xrt_iface
8
*/
9
10
#pragma once
11
12
13
/*
14
*
15
* Auto detect OS.
16
*
17
*/
18
19
#if defined(__linux__)
20
#define XRT_OS_LINUX
21
#define XRT_OS_UNIX
22
#define XRT_OS_WAS_AUTODETECTED
23
#endif
24
25
26
27
#ifndef XRT_OS_WAS_AUTODETECTED
28
#error "OS type not found during compile"
29
#endif
30
#undef XRT_OS_WAS_AUTODETECTED
Generated by
1.8.13