mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46: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
|
||||
/*!
|
||||
* @file
|
||||
|
@ -17,6 +17,10 @@
|
|||
#include <string.h>
|
||||
|
||||
|
||||
#ifdef XRT_OS_WINDOWS
|
||||
#define PATH_MAX MAX_PATH
|
||||
#endif
|
||||
|
||||
#ifdef XRT_OS_LINUX
|
||||
#include <sys/stat.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.
|
||||
return fopen(file_str, mode);
|
||||
}
|
||||
|
||||
#else if defined(XRT_OS_WINDOWS)
|
||||
#define PATH_MAX MAX_PATH
|
||||
#endif
|
||||
#endif /* XRT_OS_LINUX */
|
||||
|
||||
ssize_t
|
||||
u_file_get_runtime_dir(char *out_path, size_t out_path_size)
|
||||
|
|
Loading…
Reference in a new issue