Skip to content

Commit bb8fbb6

Browse files
authored
Merge pull request #1822 from McStasMcXtrace/willend-patch-1
Fix for #1818
2 parents 729d517 + 8ea6f8c commit bb8fbb6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mcstas-comps/share/supermirror-lib.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,11 @@ int to_lower_case(char *in, char **out)
295295
/********************************************************************************/
296296
FILE *sm_open_file(char *File, const char *Mode, char *Path, int*file_location_option) {
297297

298+
/* portability - for VC on Windows */
299+
#ifndef PATH_MAX
300+
#define PATH_MAX 4096
301+
#endif
302+
298303
char path[PATH_MAX];
299304
FILE *hfile = NULL;
300305

0 commit comments

Comments
 (0)