Dep/g3d: Fix warnings with gcc 16

Signed-off-by: luis <[email protected]>
This commit is contained in:
Shauren
2026-05-08 21:44:55 -03:00
committed by luis
parent 26e5bc3232
commit f0806d0492
3 changed files with 37 additions and 16 deletions
+35
View File
@@ -0,0 +1,35 @@
diff --git a/dep/g3dlite/include/G3D/platform.h b/dep/g3dlite/include/G3D/platform.h
index 400a81361e..a38e87a641 100644
--- a/dep/g3dlite/include/G3D/platform.h
+++ b/dep/g3dlite/include/G3D/platform.h
@@ -366,29 +366,14 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) {\
// Bring in shared_ptr and weak_ptr
-#if (defined(__GNUC__) && defined(__APPLE__)) || defined(__linux__)
-#include <ciso646> // Defines _LIBCC_VERSION if linking against libc++ or does nothing
-#endif
-#if (!defined(_LIBCPP_VERSION) && defined(__APPLE__)) || (!defined(_LIBCPP_VERSION) && defined(__linux__))
-# include <tr1/memory>
-#else
-# include <memory>
-#endif
+#include <memory>
namespace G3D {
-#if (!defined(_LIBCPP_VERSION) && defined(__APPLE__)) || (!defined(_LIBCPP_VERSION) && defined(__linux__))
- using std::tr1::shared_ptr;
- using std::tr1::weak_ptr;
- using std::tr1::dynamic_pointer_cast;
- using std::tr1::static_pointer_cast;
- using std::tr1::enable_shared_from_this;
-#else
using std::shared_ptr;
using std::weak_ptr;
using std::dynamic_pointer_cast;
using std::static_pointer_cast;
using std::enable_shared_from_this;
-#endif
/** Options for initG3D and initGLG3D. */
class G3DSpecification {