Dep/g3d: Removed std::shared_ptr, std::weak_ptr, std::dynamic_pointer_cast, std::static_pointer_cast and std::enable_shared_from_this from global namespace
(cherry picked from commit 2c23a686e30cd23dbfa18f2fdfac0282052731ab)
This commit is contained in:
1 parent
d6c52ba28c
commit
e9e349c7cc
3 files changed
+39
-2
No files matched your search
@@ -0,0 +1,32 @@
|
|||||||
|
diff --git a/dep/g3dlite/include/G3D/platform.h b/dep/g3dlite/include/G3D/platform.h
|
||||||
|
index 17e3bf2..439495a 100644
|
||||||
|
--- a/dep/g3dlite/include/G3D/platform.h
|
||||||
|
+++ b/dep/g3dlite/include/G3D/platform.h
|
||||||
|
@@ -364,13 +364,18 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) {\
|
||||||
|
#endif
|
||||||
|
#if (!defined(_LIBCPP_VERSION) && defined(__APPLE__)) || (!defined(_LIBCPP_VERSION) && defined(__linux__))
|
||||||
|
# include <tr1/memory>
|
||||||
|
+#else
|
||||||
|
+# include <memory>
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+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
|
||||||
|
-# include <memory>
|
||||||
|
using std::shared_ptr;
|
||||||
|
using std::weak_ptr;
|
||||||
|
using std::dynamic_pointer_cast;
|
||||||
|
@@ -378,7 +383,6 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) {\
|
||||||
|
using std::enable_shared_from_this;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-namespace G3D {
|
||||||
|
/** Options for initG3D and initGLG3D. */
|
||||||
|
class G3DSpecification {
|
||||||
|
public:
|
||||||
@@ -15,3 +15,4 @@ G3D-v9.0 hotfix2.diff - 2014-08-23 - fix some -Wconversion warnings
|
|||||||
G3D-v9.0 hotfix3.diff - 2015-06-28 - fix some warnings
|
G3D-v9.0 hotfix3.diff - 2015-06-28 - fix some warnings
|
||||||
G3D-v9.0 hotfix4.diff - 2015-07-02 - backport G3D10 fix
|
G3D-v9.0 hotfix4.diff - 2015-07-02 - backport G3D10 fix
|
||||||
G3D-v9.0 hotfix5.diff - 2015-07-31 - fix MSVC 2015 warning: dep/g3dlite/include/G3D/Quat.h(352): warning C4458: declaration of 'x' hides class member
|
G3D-v9.0 hotfix5.diff - 2015-07-31 - fix MSVC 2015 warning: dep/g3dlite/include/G3D/Quat.h(352): warning C4458: declaration of 'x' hides class member
|
||||||
|
G3D-v9.0 hotfix6.diff - 2015-11-04 - fix adding std::shared_ptr, std::weak_ptr, std::dynamic_pointer_cast, std::static_pointer_cast and std::enable_shared_from_this to global namespace
|
||||||
@@ -364,13 +364,18 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) {\
|
|||||||
#endif
|
#endif
|
||||||
#if (!defined(_LIBCPP_VERSION) && defined(__APPLE__)) || (!defined(_LIBCPP_VERSION) && defined(__linux__))
|
#if (!defined(_LIBCPP_VERSION) && defined(__APPLE__)) || (!defined(_LIBCPP_VERSION) && defined(__linux__))
|
||||||
# include <tr1/memory>
|
# include <tr1/memory>
|
||||||
|
#else
|
||||||
|
# include <memory>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace G3D {
|
||||||
|
#if (!defined(_LIBCPP_VERSION) && defined(__APPLE__)) || (!defined(_LIBCPP_VERSION) && defined(__linux__))
|
||||||
using std::tr1::shared_ptr;
|
using std::tr1::shared_ptr;
|
||||||
using std::tr1::weak_ptr;
|
using std::tr1::weak_ptr;
|
||||||
using std::tr1::dynamic_pointer_cast;
|
using std::tr1::dynamic_pointer_cast;
|
||||||
using std::tr1::static_pointer_cast;
|
using std::tr1::static_pointer_cast;
|
||||||
using std::tr1::enable_shared_from_this;
|
using std::tr1::enable_shared_from_this;
|
||||||
#else
|
#else
|
||||||
# include <memory>
|
|
||||||
using std::shared_ptr;
|
using std::shared_ptr;
|
||||||
using std::weak_ptr;
|
using std::weak_ptr;
|
||||||
using std::dynamic_pointer_cast;
|
using std::dynamic_pointer_cast;
|
||||||
@@ -378,7 +383,6 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) {\
|
|||||||
using std::enable_shared_from_this;
|
using std::enable_shared_from_this;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace G3D {
|
|
||||||
/** Options for initG3D and initGLG3D. */
|
/** Options for initG3D and initGLG3D. */
|
||||||
class G3DSpecification {
|
class G3DSpecification {
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in new issue
Block a user