tangled
alpha
login
or
join now
matrixfurry.com
/
monado
0
fork
atom
The open source OpenXR runtime
0
fork
atom
overview
issues
pulls
pipelines
u/file: Fix define checks being erroneous
Jakob Bornecrantz
3 years ago
12bb18a3
1cafa92c
+6
-5
1 changed file
expand all
collapse all
unified
split
src
xrt
auxiliary
util
u_file.c
+6
-5
src/xrt/auxiliary/util/u_file.c
···
1
1
-
// Copyright 2019-2020, Collabora, Ltd.
1
1
+
// Copyright 2019-2022, Collabora, Ltd.
2
2
// SPDX-License-Identifier: BSL-1.0
3
3
/*!
4
4
* @file
···
16
16
#include <stdlib.h>
17
17
#include <string.h>
18
18
19
19
+
20
20
+
#ifdef XRT_OS_WINDOWS
21
21
+
#define PATH_MAX MAX_PATH
22
22
+
#endif
19
23
20
24
#ifdef XRT_OS_LINUX
21
25
#include <sys/stat.h>
···
103
107
// Do not report error.
104
108
return fopen(file_str, mode);
105
109
}
106
106
-
107
107
-
#else if defined(XRT_OS_WINDOWS)
108
108
-
#define PATH_MAX MAX_PATH
109
109
-
#endif
110
110
+
#endif /* XRT_OS_LINUX */
110
111
111
112
ssize_t
112
113
u_file_get_runtime_dir(char *out_path, size_t out_path_size)