aboutsummaryrefslogtreecommitdiff
path: root/src/proj_api.h
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-09-18 14:00:48 +0200
committerKristian Evers <kristianevers@gmail.com>2018-09-18 19:43:10 +0200
commit66f228cfbcf6e47effc5771a29bfaa93b0bf5eb5 (patch)
treea81f6fccec261d1b25c69e844ca067ed7870b70f /src/proj_api.h
parenteed0f16e8f85fff7fc8a190594fb39bc95cada74 (diff)
downloadPROJ-66f228cfbcf6e47effc5771a29bfaa93b0bf5eb5.tar.gz
PROJ-66f228cfbcf6e47effc5771a29bfaa93b0bf5eb5.zip
Only allow usage of proj_api.h if explicit consent was given
We want to flag that proj_api_h is now deprecated. With this commit it is now mandatory to #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H before proj_api.h can be included. proj_api.h is used internally a bunch of places. Therefore ACCEPT_USE_OF_DEPRECATED_PROJ_API_H has been defined in projects.h and a few other necessary files to ensure that PROJ compiles. Closes #836
Diffstat (limited to 'src/proj_api.h')
-rw-r--r--src/proj_api.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/proj_api.h b/src/proj_api.h
index 81cda69a..000a0baf 100644
--- a/src/proj_api.h
+++ b/src/proj_api.h
@@ -32,6 +32,11 @@
* when a few minor-version releases has been made.
*
*/
+
+#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
+#error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H'
+#endif
+
#ifndef PJ_VERSION
#define PJ_VERSION 600
#endif