From 66f228cfbcf6e47effc5771a29bfaa93b0bf5eb5 Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Tue, 18 Sep 2018 14:00:48 +0200 Subject: 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 --- src/projects.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/projects.h') diff --git a/src/projects.h b/src/projects.h index ee0e2b65..c4f09a8d 100644 --- a/src/projects.h +++ b/src/projects.h @@ -29,6 +29,10 @@ #ifndef PROJECTS_H #define PROJECTS_H +#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H +#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H +#endif + #ifdef _MSC_VER # ifndef _CRT_SECURE_NO_DEPRECATE # define _CRT_SECURE_NO_DEPRECATE -- cgit v1.2.3