diff options
author | Jasmin Jessich <jasmin@anw.at> | 2017-05-19 20:31:08 +0200 |
---|---|---|
committer | Jasmin Jessich <jasmin@anw.at> | 2017-05-20 02:49:29 +0200 |
commit | eba2ad612cc25fcfcd7347f360b5506ba8921835 (patch) | |
tree | 5cb0d596e1d7e448856e28921fe83daf70ea86be /thread.h | |
parent | 3aea661f98a0dbf87a4331640ad0408bdb8c4092 (diff) | |
download | vdr-plugin-live-eba2ad612cc25fcfcd7347f360b5506ba8921835.tar.gz vdr-plugin-live-eba2ad612cc25fcfcd7347f360b5506ba8921835.tar.bz2 |
gcc-6 fixes
- New file autoptr.h to switch between "std::unique_ptr" and
"std::auto_ptr" depending on the GCC version, by new macro AUTO_PTR.
- Removed some "using namespace std" and add some "#define __STL_CONFIG_H"
before including header files. This will not define "swap" in vdr/tools.h.
- Remove also "using namespace std::tr1".
Diffstat (limited to 'thread.h')
-rw-r--r-- | thread.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3,6 +3,8 @@ #include <memory> #include <vdr/thread.h> +#include "autoptr.h" + namespace tnt { class Tntnet; } @@ -19,7 +21,7 @@ protected: virtual void Action(); private: - std::auto_ptr< tnt::Tntnet > m_server; + AUTO_PTR< tnt::Tntnet > m_server; }; } // namespace vdrlive |