Files
ThordekkCore/dep/g3dlite/G3D-v9.0 hotfix21.diff
2026-05-08 21:44:55 -03:00

36 lines
1.3 KiB
Diff

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 {