Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | From e262b6e7cc6271d71405f10c4817b9b3b2b95f05 Mon Sep 17 00:00:00 2001 |
| 2 | From: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> |
| 3 | Date: Mon, 13 Dec 2021 02:00:48 +0100 |
| 4 | Subject: [PATCH] Include typeinfo for typeid() |
| 5 | |
| 6 | Otherwise fails with: |
| 7 | error: must '#include <typeinfo>' before using 'typeid' |
| 8 | |
| 9 | Upstream-Status: Submitted |
| 10 | [https://github.com/dbus-cxx/dbus-cxx/pull/83] |
| 11 | --- |
| 12 | dbus-cxx/demangle.h | 1 + |
| 13 | 1 file changed, 1 insertion(+) |
| 14 | |
| 15 | diff --git a/dbus-cxx/demangle.h b/dbus-cxx/demangle.h |
| 16 | index b71bcb9..9a4e99b 100644 |
| 17 | --- a/dbus-cxx/demangle.h |
| 18 | +++ b/dbus-cxx/demangle.h |
| 19 | @@ -21,6 +21,7 @@ |
| 20 | #define DBUSCXX_DEMANGLE_H |
| 21 | |
| 22 | #include <string> |
| 23 | +#include <typeinfo> |
| 24 | #include <dbus-cxx/dbus-cxx-config.h> |
| 25 | |
| 26 | #if DBUS_CXX_HAS_CXXABI_H |
| 27 | -- |
| 28 | 2.25.1 |
| 29 | |