Skip to content

Commit

Permalink
Remove now useless '#define PJ_LIB_'
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 23, 2023
1 parent 850c6ab commit d7caaab
Show file tree
Hide file tree
Showing 138 changed files with 91 additions and 161 deletions.
1 change: 0 additions & 1 deletion src/conversions/axisswap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ It is only necessary to specify the axes that are affected by the swap
*
***********************************************************************/

#define PJ_LIB_
#include <errno.h>
#include <stdlib.h>
#include <string.h>
Expand Down
2 changes: 0 additions & 2 deletions src/conversions/cart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/

#define PJ_LIB_

#include "proj_internal.h"
#include <math.h>

Expand Down
2 changes: 0 additions & 2 deletions src/conversions/geoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/

#define PJ_LIB_

#include <math.h>

#include "proj.h"
Expand Down
2 changes: 0 additions & 2 deletions src/conversions/geocent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/

#define PJ_LIB_

#include "proj.h"
#include "proj_internal.h"

Expand Down
2 changes: 1 addition & 1 deletion src/conversions/noop.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include "proj_internal.h"

Expand Down
2 changes: 1 addition & 1 deletion src/conversions/set.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include "proj_internal.h"
#include <errno.h>
Expand Down
2 changes: 0 additions & 2 deletions src/conversions/topocentric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/

#define PJ_LIB_

#include "proj_internal.h"
#include <errno.h>
#include <math.h>
Expand Down
2 changes: 0 additions & 2 deletions src/conversions/unitconvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ Last update: 2017-05-16
*
***********************************************************************/

#define PJ_LIB_

#include <errno.h>
#include <math.h>
#include <string.h>
Expand Down
1 change: 0 additions & 1 deletion src/deriv.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* dervative of (*P->fwd) projection */
#define PJ_LIB_

#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/factors.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* projection scale factors */
#define PJ_LIB_

#include "proj.h"
#include "proj_internal.h"
#include <math.h>
Expand Down
1 change: 0 additions & 1 deletion src/gauss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#define PJ_LIB_

#include <math.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/

#define PJ_LIB_

#include <ctype.h>
#include <math.h>
#include <stddef.h>
Expand Down
2 changes: 0 additions & 2 deletions src/pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ Thomas Knudsen, thokn@sdfe.dk, 2016-05-20
*
********************************************************************************/

#define PJ_LIB_

#include <math.h>
#include <stack>
#include <stddef.h>
Expand Down
1 change: 0 additions & 1 deletion src/proj_mdist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
** and inverse on unit ellipsoid.
** Precision commensurate with double precision.
*/
#define PJ_LIB_

#include <math.h>
#include <stdlib.h>
Expand Down
2 changes: 0 additions & 2 deletions src/projections/adams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
* https://en.wikipedia.org/wiki/Peirce_quincuncial_projection
*/

#define PJ_LIB_

#include <errno.h>
#include <math.h>

Expand Down
1 change: 0 additions & 1 deletion src/projections/aea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/

#define PJ_LIB_
#include "proj.h"
#include "proj_internal.h"
#include <errno.h>
Expand Down
1 change: 0 additions & 1 deletion src/projections/aeqd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/

#define PJ_LIB_
#include "geodesic.h"
#include "proj.h"
#include "proj_internal.h"
Expand Down
1 change: 0 additions & 1 deletion src/projections/airy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/

#define PJ_LIB_
#include "proj.h"
#include "proj_internal.h"
#include <errno.h>
Expand Down
2 changes: 0 additions & 2 deletions src/projections/aitoff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/

#define PJ_LIB_

#include <errno.h>
#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/projections/august.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/projections/bacon.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_

#include <errno.h>
#include <math.h>

Expand Down
2 changes: 0 additions & 2 deletions src/projections/bertin1953.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
Port to PROJ by Philippe Rivière, 21 September 2018
*/

#define PJ_LIB_

#include <errno.h>
#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/projections/bipc.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_

#include <errno.h>
#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/projections/boggs.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_

#include <math.h>

#include "proj.h"
Expand Down
2 changes: 1 addition & 1 deletion src/projections/bonne.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_

#include "proj.h"
#include "proj_internal.h"
#include <errno.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/calcofi.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/projections/cass.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/cc.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <math.h>

Expand Down
1 change: 0 additions & 1 deletion src/projections/ccon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* DEALINGS IN THE SOFTWARE.
*****************************************************************************/

#define PJ_LIB_
#include "proj.h"
#include "proj_internal.h"
#include <errno.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/cea.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/chamb.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/col_urban.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/collg.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <math.h>

Expand Down
2 changes: 0 additions & 2 deletions src/projections/comill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ Sciences, Oregon State University.
Port to PROJ.4 by Bojan Savric, 4 April 2016
*/

#define PJ_LIB_

#include <math.h>

#include "proj.h"
Expand Down
2 changes: 1 addition & 1 deletion src/projections/crast.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_

#include <math.h>

#include "proj.h"
Expand Down
2 changes: 1 addition & 1 deletion src/projections/denoy.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_

#include <math.h>

#include "proj.h"
Expand Down
2 changes: 1 addition & 1 deletion src/projections/eck1.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_

#include <math.h>

#include "proj.h"
Expand Down
2 changes: 1 addition & 1 deletion src/projections/eck2.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/projections/eck3.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/eck4.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/projections/eck5.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/projections/eqc.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/eqdc.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
1 change: 0 additions & 1 deletion src/projections/eqearth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ DOI: 10.1080/13658816.2018.1504949
Port to PROJ by Juernjakob Dugge, 16 August 2018
Added ellipsoidal equations by Bojan Savric, 22 August 2018
*/
#define PJ_LIB_

#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/fahey.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <math.h>

Expand Down
2 changes: 1 addition & 1 deletion src/projections/fouc_s.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/gall.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <math.h>

Expand Down
1 change: 0 additions & 1 deletion src/projections/geos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#define PJ_LIB_
#include <errno.h>
#include <math.h>
#include <stddef.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/gins8.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include "proj.h"
#include "proj_internal.h"
Expand Down
2 changes: 1 addition & 1 deletion src/projections/gn_sinu.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/gnom.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <float.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/goode.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/gstmerc.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/hammer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/hatano.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <math.h>

Expand Down
1 change: 0 additions & 1 deletion src/projections/healpix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*****************************************************************************/
#define PJ_LIB_

#include <errno.h>
#include <math.h>
Expand Down
2 changes: 1 addition & 1 deletion src/projections/igh.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define PJ_LIB_


#include <errno.h>
#include <math.h>
Expand Down
Loading

0 comments on commit d7caaab

Please sign in to comment.