Skip to content

Commit

Permalink
Merge pull request #1822 from McStasMcXtrace/willend-patch-1
Browse files Browse the repository at this point in the history
Fix for #1818
  • Loading branch information
willend authored Jan 23, 2025
2 parents 729d517 + 8ea6f8c commit bb8fbb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mcstas-comps/share/supermirror-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ int to_lower_case(char *in, char **out)
/********************************************************************************/
FILE *sm_open_file(char *File, const char *Mode, char *Path, int*file_location_option) {

/* portability - for VC on Windows */
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

char path[PATH_MAX];
FILE *hfile = NULL;

Expand Down

0 comments on commit bb8fbb6

Please sign in to comment.