openbsd-ports/geo/qlandkarte/patches/patch-src_GeoMath_h
landry a8c5805167 Unbreak after proj update, by manually porting it to proj_api.h.
This project is dead upstream anyway, and people should switch to QLandKarteGT.
2013-03-10 09:51:22 +00:00

17 lines
569 B
Plaintext

$OpenBSD: patch-src_GeoMath_h,v 1.1 2013/03/10 09:51:22 landry Exp $
--- src/GeoMath.h.orig Wed Jun 4 20:36:19 2008
+++ src/GeoMath.h Sun Mar 10 10:14:33 2013
@@ -19,8 +19,11 @@
#ifndef GEOMATH_H
#define GEOMATH_H
#include <stdint.h>
-#include <projects.h>
+#include <proj_api.h>
#include <QVector>
+typedef projXY XY;
+#define PI 3.14159265358979323846
+#define TWOPI 6.2831853071795864769
extern void GPS_Math_Deg_To_Str(double lon, double lat, QString& str);
extern void GPS_Math_Str_To_Deg(const QString& str, double& lon, double& lat);