packages/utils/telldus-core/patches/940-cxx11.patch
Rosen Penev e7094f3ef7
telldus-core: fix compilation with libcxx 10
Missing headers and wrong namespace.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-02 16:03:32 -07:00

29 lines
616 B
Diff

--- 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_