Skip to content

Commit 78b307f

Browse files
committed
platform_utils: organize includes
1 parent 839d538 commit 78b307f

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

src/common/platform_utils.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@
2323
#include "xr_dependencies.h"
2424
#include <string>
2525

26-
#if defined(XR_OS_LINUX)
27-
#include <unistd.h>
28-
#include <fcntl.h>
29-
#include <iostream>
30-
#endif
31-
3226
// OpenXR paths and registry key locations
3327
#define OPENXR_RELATIVE_PATH "openxr/"
3428
#define OPENXR_IMPLICIT_API_LAYER_RELATIVE_PATH "/api_layers/implicit.d"
@@ -55,6 +49,10 @@
5549
// Environment variables
5650
#if defined(XR_OS_LINUX) || defined(XR_OS_APPLE)
5751

52+
#include <unistd.h>
53+
#include <fcntl.h>
54+
#include <iostream>
55+
5856
namespace detail {
5957

6058
static inline char* ImplGetEnv(const char* name) { return getenv(name); }

0 commit comments

Comments
 (0)