We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 839d538 commit 78b307fCopy full SHA for 78b307f
1 file changed
src/common/platform_utils.hpp
@@ -23,12 +23,6 @@
23
#include "xr_dependencies.h"
24
#include <string>
25
26
-#if defined(XR_OS_LINUX)
27
-#include <unistd.h>
28
-#include <fcntl.h>
29
-#include <iostream>
30
-#endif
31
-
32
// OpenXR paths and registry key locations
33
#define OPENXR_RELATIVE_PATH "openxr/"
34
#define OPENXR_IMPLICIT_API_LAYER_RELATIVE_PATH "/api_layers/implicit.d"
@@ -55,6 +49,10 @@
55
49
// Environment variables
56
50
#if defined(XR_OS_LINUX) || defined(XR_OS_APPLE)
57
51
52
+#include <unistd.h>
53
+#include <fcntl.h>
54
+#include <iostream>
+
58
namespace detail {
59
60
static inline char* ImplGetEnv(const char* name) { return getenv(name); }
0 commit comments