diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-10-15 11:47:01 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-10-15 11:47:01 +0000 |
| commit | 1ff9144801ff6983eed4ce6849aa263533fe195e (patch) | |
| tree | 31e4b2aeceed30d743245a6d0d8d496a7c590097 /fluid | |
| parent | a8b58f6b79da340030d0646ba7036ba40f62e528 (diff) | |
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
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/fluid.cxx | 5 |
1 files 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; |
