telldus-core: fix compilation with libcxx 10

Missing headers and wrong namespace.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-06-02 16:03:32 -07:00
parent 369ef50e67
commit e7094f3ef7
4 changed files with 72 additions and 2 deletions
@@ -0,0 +1,29 @@
--- a/common/Event.h
+++ b/common/Event.h
@@ -9,7 +9,7 @@
#ifndef _WINDOWS
- #include <tr1/memory>
+ #include <memory>
typedef void* EVENT_T;
#else
#include <windows.h>
@@ -32,7 +32,7 @@ namespace TelldusCore {
virtual bool isValid() const;
};
- typedef std::tr1::shared_ptr<EventData> EventDataRef;
+ typedef std::shared_ptr<EventData> EventDataRef;
class EventBase {
public:
@@ -74,7 +74,7 @@ namespace TelldusCore {
friend class EventHandler;
};
- typedef std::tr1::shared_ptr<Event> EventRef;
+ typedef std::shared_ptr<Event> EventRef;
}
#endif // TELLDUS_CORE_COMMON_EVENT_H_