Репозиторий Sisyphus
Последнее обновление: 2 февраля 2023 | Пакетов: 18159 | Посещений: 26618007
en ru br
Репозитории ALT
S:0.3.160-alt2
5.1: 0.3.146-alt0.M51.1
4.0: 0.3.146-alt0.M40.1
www.altlinux.org/Changes

Группа :: Игры/Головоломки
Пакет: numptyphysics

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: numptyphysics-0.3-gcc43.patch
Скачать


Fix build of Box2D with gcc4.3.
Still applies against current Box2D upstream.
Lubomir Rintel <lkundrak@v3.sk>
diff -urp numptyphysics/Box2D/Source/Collision/b2BroadPhase.cpp numptyphysics/Box2D/Source/Collision/b2BroadPhase.cpp
--- numptyphysics.orig/Box2D/Source/Collision/b2BroadPhase.cpp	2008-09-25 14:40:28.000000000 +0200
+++ numptyphysics/Box2D/Source/Collision/b2BroadPhase.cpp	2008-09-25 16:16:39.000000000 +0200
@@ -18,6 +18,7 @@
 
 #include "b2BroadPhase.h"
 #include <algorithm>
+#include <cstring>
 
 // Notes:
 // - we use bound arrays instead of linked lists for cache coherence.
diff -urp numptyphysics/Box2D/Source/Common/b2BlockAllocator.cpp numptyphysics/Box2D/Source/Common/b2BlockAllocator.cpp
--- numptyphysics.orig/Box2D/Source/Common/b2BlockAllocator.cpp	2008-09-25 14:40:28.000000000 +0200
+++ numptyphysics/Box2D/Source/Common/b2BlockAllocator.cpp	2008-09-25 16:17:46.000000000 +0200
@@ -20,6 +20,7 @@
 #include <cstdlib>
 #include <memory>
 #include <climits>
+#include <cstring>
 
 int32 b2BlockAllocator::s_blockSizes[b2_blockSizes] = 
 {
diff -urp numptyphysics/Box2D/Source/Dynamics/Contacts/b2CircleContact.cpp numptyphysics/Box2D/Source/Dynamics/Contacts/b2CircleContact.cpp
--- numptyphysics.orig/Box2D/Source/Dynamics/Contacts/b2CircleContact.cpp	2008-09-25 14:40:28.000000000 +0200
+++ numptyphysics/Box2D/Source/Dynamics/Contacts/b2CircleContact.cpp	2008-09-25 16:17:57.000000000 +0200
@@ -22,6 +22,7 @@
 #include "../../Common/b2BlockAllocator.h"
 
 #include <new>
+#include <cstring>
 
 b2Contact* b2CircleContact::Create(b2Shape* shape1, b2Shape* shape2, b2BlockAllocator* allocator)
 {
diff -urp numptyphysics/Box2D/Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp numptyphysics/Box2D/Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp
--- numptyphysics.orig/Box2D/Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp	2008-09-25 14:40:28.000000000 +0200
+++ numptyphysics/Box2D/Source/Dynamics/Contacts/b2PolyAndCircleContact.cpp	2008-09-25 16:17:48.000000000 +0200
@@ -22,6 +22,7 @@
 #include "../../Common/b2BlockAllocator.h"
 
 #include <new>
+#include <cstring>
 
 b2Contact* b2PolyAndCircleContact::Create(b2Shape* shape1, b2Shape* shape2, b2BlockAllocator* allocator)
 {
diff -urp numptyphysics/Box2D/Source/Dynamics/Contacts/b2PolyContact.cpp numptyphysics/Box2D/Source/Dynamics/Contacts/b2PolyContact.cpp
--- numptyphysics.orig/Box2D/Source/Dynamics/Contacts/b2PolyContact.cpp	2008-09-25 14:40:28.000000000 +0200
+++ numptyphysics/Box2D/Source/Dynamics/Contacts/b2PolyContact.cpp	2008-09-25 16:17:49.000000000 +0200
@@ -23,6 +23,7 @@
 
 #include <memory>
 #include <new>
+#include <cstring>
 
 b2Contact* b2PolygonContact::Create(b2Shape* shape1, b2Shape* shape2, b2BlockAllocator* allocator)
 {
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin