Skip to content

Commit 61693b8

Browse files
committed
[MSVC] add include for M_PI_2
1 parent 75c76f5 commit 61693b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/geometry/qgsabstractgeometryv2.h

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ email : marco.hugentobler at sourcepole dot com
2121
#include "qgswkbtypes.h"
2222
#include "qgswkbptr.h"
2323

24+
#ifdef _MSC_VER
25+
// for M_PI_2
26+
#define _USE_MATH_DEFINES
27+
#include <math.h>
28+
#endif
29+
2430
#include <QString>
2531

2632
class QgsMapToPixel;

0 commit comments

Comments
 (0)