SHA256
1
0
forked from pool/0ad
0ad/glibc-2.35.patch
Dirk Stoecker 1063b0d2a6 Accepting request 956155 from home:aaronpuchert:branches:games
- Add glibc-2.35.patch: Fix build with glibc 2.35.
- Use system mozjs on Leap 15.4 as well.

OBS-URL: https://build.opensuse.org/request/show/956155
OBS-URL: https://build.opensuse.org/package/show/games/0ad?expand=0&rev=115
2022-02-24 14:48:49 +00:00

14 lines
639 B
Diff

diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp
index d4796ec..d0e8c9a 100644
--- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp
+++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Environment/Environment.cpp
@@ -29,7 +29,9 @@ using AtlasMessage::Shareable;
static Observable<AtlasMessage::sEnvironmentSettings> g_EnvironmentSettings;
+#ifndef M_PIf
const float M_PIf = 3.14159265f;
+#endif
//////////////////////////////////////////////////////////////////////////