From 29583196dfae2565a35c7a8759cc8a5640d6a2b1 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sun, 9 Feb 2020 00:53:35 +0100 Subject: 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) --- src/filemanager.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/filemanager.hpp') 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 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, -- cgit v1.2.3