diff options
| author | Chris Mayo <aklhfex@gmail.com> | 2019-03-25 18:12:03 +0000 |
|---|---|---|
| committer | Chris Mayo <aklhfex@gmail.com> | 2019-03-25 18:12:03 +0000 |
| commit | b4bbcc3f264602bb4b58a5c703cc220ed404d127 (patch) | |
| tree | 4bc97f528d033327ea78f98b549846c0cba6ebb1 | |
| parent | 66774791d16d1b197911e595aaaceb9690c8ca14 (diff) | |
| download | PROJ-b4bbcc3f264602bb4b58a5c703cc220ed404d127.tar.gz PROJ-b4bbcc3f264602bb4b58a5c703cc220ed404d127.zip | |
pj_strerrno: enable system error messages
HAVE_STRERROR is defined in proj_config.h.
| -rw-r--r-- | src/strerrno.cpp | 1 | ||||
| -rw-r--r-- | test/unit/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | test/unit/proj_errno_string_test.cpp | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/strerrno.cpp b/src/strerrno.cpp index 20255747..af130fc4 100644 --- a/src/strerrno.cpp +++ b/src/strerrno.cpp @@ -5,6 +5,7 @@ #include <string.h> #include "proj.h" +#include "proj_config.h" #include "proj_internal.h" static const char * const diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index 9b160be8..66a69c3f 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -69,6 +69,8 @@ endif() include_directories(${CMAKE_SOURCE_DIR}/include) include_directories(${SQLITE3_INCLUDE_DIR}) +# Add the directory containing proj_config.h +include_directories(${CMAKE_BINARY_DIR}/src) add_executable(proj_pj_transform_test main.cpp diff --git a/test/unit/proj_errno_string_test.cpp b/test/unit/proj_errno_string_test.cpp index dcdff5c4..a592b31f 100644 --- a/test/unit/proj_errno_string_test.cpp +++ b/test/unit/proj_errno_string_test.cpp @@ -29,6 +29,7 @@ #include <cstring> #include "proj.h" +#include "proj_config.h" #include "gtest_include.h" |
