Commit 5af5c086 authored by Albert Gräf's avatar Albert Gräf
Browse files

Windows compatibility.

parent b8eced48
......@@ -646,8 +646,10 @@ char *sys_recent_files[MAX_RECENT_FILES];
static int fexists(const char *s)
struct stat statbuf;
return stat(s, &statbuf) == 0;
FILE *fp = sys_fopen(s, "r");
if (!fp) return 0;
return 1;
void sys_add_recent_file(const char *s)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment