aboutsummaryrefslogtreecommitdiff
path: root/src/filemanager.hpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-02-09 00:53:35 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-02-11 15:48:05 +0100
commit29583196dfae2565a35c7a8759cc8a5640d6a2b1 (patch)
treec862cb9d4206f3be8bc11b9f28855abe43cff018 /src/filemanager.hpp
parenta10b5edfad805b1e09d88b31b953707412440b09 (diff)
downloadPROJ-29583196dfae2565a35c7a8759cc8a5640d6a2b1.tar.gz
PROJ-29583196dfae2565a35c7a8759cc8a5640d6a2b1.zip
Use relative directory to locate PROJ resource files.
Fixes #1490 This is an extension of the Window-specific logic added recently to Unix builds. This reuses parts of proposed past commit https://github.com/OSGeo/PROJ/pull/1517/commits/82a07e51c6e24ddb936d131ababe29f1ac36ef14 (credits to @abellgithub)
Diffstat (limited to 'src/filemanager.hpp')
-rw-r--r--src/filemanager.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filemanager.hpp b/src/filemanager.hpp
index 9446a0bc..233c657c 100644
--- a/src/filemanager.hpp
+++ b/src/filemanager.hpp
@@ -55,7 +55,7 @@ class FileManager {
// "Low-level" interface.
static PROJ_DLL std::unique_ptr<File>
open(PJ_CONTEXT *ctx, const char *filename, FileAccess access);
- static bool exists(PJ_CONTEXT *ctx, const char *filename);
+ static PROJ_DLL bool exists(PJ_CONTEXT *ctx, const char *filename);
static bool mkdir(PJ_CONTEXT *ctx, const char *filename);
static bool unlink(PJ_CONTEXT *ctx, const char *filename);
static bool rename(PJ_CONTEXT *ctx, const char *oldPath,