mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
u/file: Fix define checks being erroneous
This commit is contained in:
parent
1cafa92c3b
commit
12bb18a34c
|
@ -1,4 +1,4 @@
|
||||||
// Copyright 2019-2020, Collabora, Ltd.
|
// Copyright 2019-2022, Collabora, Ltd.
|
||||||
// SPDX-License-Identifier: BSL-1.0
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
/*!
|
/*!
|
||||||
* @file
|
* @file
|
||||||
|
@ -17,6 +17,10 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef XRT_OS_WINDOWS
|
||||||
|
#define PATH_MAX MAX_PATH
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef XRT_OS_LINUX
|
#ifdef XRT_OS_LINUX
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <linux/limits.h>
|
#include <linux/limits.h>
|
||||||
|
@ -103,10 +107,7 @@ u_file_open_file_in_config_dir(const char *filename, const char *mode)
|
||||||
// Do not report error.
|
// Do not report error.
|
||||||
return fopen(file_str, mode);
|
return fopen(file_str, mode);
|
||||||
}
|
}
|
||||||
|
#endif /* XRT_OS_LINUX */
|
||||||
#else if defined(XRT_OS_WINDOWS)
|
|
||||||
#define PATH_MAX MAX_PATH
|
|
||||||
#endif
|
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
u_file_get_runtime_dir(char *out_path, size_t out_path_size)
|
u_file_get_runtime_dir(char *out_path, size_t out_path_size)
|
||||||
|
|
Loading…
Reference in a new issue