Skip to content

Commit

Permalink
Replace remaining calls to access() with fl_access().
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Albrecht Schlosser committed Oct 15, 2017
1 parent a8b58f6 commit 1ff9144
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fluid/fluid.cxx
Expand Up @@ -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
Expand Down Expand Up @@ -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 ++;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1ff9144

Please sign in to comment.