From 38baca48fb558df52888ff04d0280ddaf7d8801e Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 15 Apr 2024 16:20:00 +0200 Subject: [PATCH] Fix compilation on simple_demo_qml on Windows (#986) Signed-off-by: Silvio Traversaro --- examples/simple_demo_qml/GzRenderer.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/simple_demo_qml/GzRenderer.cc b/examples/simple_demo_qml/GzRenderer.cc index 4b4756d02..0b55cca07 100644 --- a/examples/simple_demo_qml/GzRenderer.cc +++ b/examples/simple_demo_qml/GzRenderer.cc @@ -25,6 +25,8 @@ #include +#include + #include using namespace gz; @@ -285,7 +287,7 @@ void GzRenderer::InitEngine() ////////////////////////////////////////////////// void GzRenderer::UpdateCamera() { - double angle = this->cameraOffset / 2 * M_PI; + double angle = this->cameraOffset / 2 * GZ_PI; double x = sin(angle) * 3.0 + 3.0; double y = cos(angle) * 3.0; this->camera->SetLocalPosition(x, y, 0.0);