The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

u/file: Make more functions work on Windows

authored by

Julian Petrov and committed by
Jakob Bornecrantz
c7a5a0bc cc2e7b6d

+5 -3
+5 -3
src/xrt/auxiliary/util/u_file.c
··· 15 15 #include <stdio.h> 16 16 #include <stdlib.h> 17 17 #include <string.h> 18 - #include <sys/stat.h> 19 18 20 19 21 20 #ifdef XRT_OS_LINUX 21 + #include <sys/stat.h> 22 22 #include <linux/limits.h> 23 23 24 24 static int ··· 104 104 return fopen(file_str, mode); 105 105 } 106 106 107 + #else if defined(XRT_OS_WINDOWS) 108 + #define PATH_MAX MAX_PATH 109 + #endif 110 + 107 111 ssize_t 108 112 u_file_get_runtime_dir(char *out_path, size_t out_path_size) 109 113 { ··· 127 131 128 132 return snprintf(out_path, out_path_size, "%s/%s", tmp, suffix); 129 133 } 130 - 131 - #endif 132 134 133 135 char * 134 136 u_file_read_content(FILE *file)