From 1ff9144801ff6983eed4ce6849aa263533fe195e Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 15 Oct 2017 11:47:01 +0000 Subject: [PATCH] Replace remaining calls to access() with fl_access(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/fluid.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 67f46bba8..db652f416 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -52,7 +52,6 @@ // POSIX APIs on Windows, which is supposed to be POSIX compliant... // Some of these functions are also defined in ISO C99... #if defined(_MSC_VER) -# define access _access # define chdir _chdir # define getcwd _getcwd #endif // _MSC_VER @@ -237,7 +236,7 @@ void save_cb(Fl_Widget *, void *v) { fnfc.filter("FLUID Files\t*.f[ld]"); if (fnfc.show() != 0) return; c = fnfc.filename(); - if (!access(c, 0)) { + if (!fl_access(c, 0)) { const char *basename; if ((basename = strrchr(c, '/')) != NULL) basename ++; @@ -321,7 +320,7 @@ void save_template_cb(Fl_Widget *, void *) { // Save the .fl file... strcpy(ext, ".fl"); - if (!access(filename, 0)) { + if (!fl_access(filename, 0)) { if (fl_choice("The template \"%s\" already exists.\n" "Do you want to replace it?", "Cancel", "Replace", NULL, c) == 0) return;