Index: export_openscad.c =================================================================== --- export_openscad.c (revision 31016) +++ export_openscad.c (revision 31017) @@ -311,7 +311,7 @@ pcb_cam_begin_nolayer(PCB, &cam, NULL, options[HA_cam].str, &filename); - f = pcb_fopen_askovr(&PCB->hidlib, filename, "wb", NULL); + f = rnd_fopen_askovr(&PCB->hidlib, filename, "wb", NULL); if (!f) { perror(filename); return; @@ -611,7 +611,7 @@ RND_PCB_ACT_CONVARG(1, FGW_STR, scad_export_poly, name = argv[1].val.str); - f = pcb_fopen_askovr(&PCB->hidlib, name, "w", NULL); + f = rnd_fopen_askovr(&PCB->hidlib, name, "w", NULL); if (f == NULL) { rnd_message(RND_MSG_ERROR, "Failed to open %s for writing\n", name); RND_ACT_IRES(-1); Index: scad_models.c =================================================================== --- scad_models.c (revision 31016) +++ scad_models.c (revision 31017) @@ -33,7 +33,7 @@ if (!htsp_has(models, name)) { char buff[1024], *full_path; - fin = pcb_fopen_first(&PCB->hidlib, &conf_core.rc.library_search_paths, name, "r", &full_path, rnd_true); + fin = rnd_fopen_first(&PCB->hidlib, &conf_core.rc.library_search_paths, name, "r", &full_path, rnd_true); if (fin != NULL) { char *s, *safe_name = rnd_strdup(name);