1 --- src/wx-config.c.orig 2020-12-01 19:49:05 UTC 2 +++ src/wx-config.c 3 @@ -1807,7 +1807,7 @@ static int hdnew_dlgproc(void* hdlg, int message, INT_ 4 5 if (hd_format == 0) /* Raw .img */ 6 { 7 - f = fopen64(hd_new_name, "wb"); 8 + f = fopen(hd_new_name, "wb"); 9 if (!f) 10 { 11 wx_messagebox(hdlg, "Can't open file for write", "PCem error", WX_MB_OK); 12 @@ -2219,7 +2219,7 @@ static int hd_file(void *hdlg, int drive) 13 if (!getfile(hdlg, "Hard disc image (*.img;*.vhd)|*.img;*.vhd|All files (*.*)|*.*", "")) 14 { 15 off64_t sz; 16 - FILE *f = fopen64(openfilestring, "rb"); 17 + FILE *f = fopen(openfilestring, "rb"); 18 if (!f) 19 { 20 wx_messagebox(hdlg,"Can't open file for read","PCem error",WX_MB_OK); 21 @@ -2271,8 +2271,8 @@ static int hd_file(void *hdlg, int drive) 22 } 23 else 24 { 25 - fseeko64(f, -1, SEEK_END); 26 - sz = ftello64(f) + 1; 27 + fseek(f, -1, SEEK_END); 28 + sz = ftell(f) + 1; 29 fclose(f); 30 check_hd_type(hdlg, sz); 31 } 32