Commit 0422b066 authored by captainwong's avatar captainwong

DECLARE_HB_COMMON_COM_CONSTEXPR_MEMBERS

parent cc2af73c
...@@ -68,15 +68,7 @@ using namespace ademco; ...@@ -68,15 +68,7 @@ using namespace ademco;
using namespace hb; using namespace hb;
using namespace hb::common; using namespace hb::common;
// fix gcc cry DECLARE_HB_COMMON_COM_CONSTEXPR_MEMBERS;
#ifdef __GNUG__
constexpr Char com::A1::data[];
constexpr Char com::A2::data[];
constexpr Char com::AC::data[];
constexpr Char com::AD::data[];
constexpr Char com::A5::data[];
constexpr Char com::B0::data[];
#endif
enum class QueryStage { enum class QueryStage {
......
...@@ -1043,6 +1043,19 @@ struct ResponseParser { ...@@ -1043,6 +1043,19 @@ struct ResponseParser {
} }
}; };
// fix gcc cry
#ifdef __GNUG__
#define DECLARE_HB_COMMON_COM_CONSTEXPR_MEMBERS \
constexpr hb::Char hb::common::com::A1::data[]; \
constexpr hb::Char hb::common::com::A2::data[]; \
constexpr hb::Char hb::common::com::AC::data[]; \
constexpr hb::Char hb::common::com::AD::data[]; \
constexpr hb::Char hb::common::com::A5::data[]; \
constexpr hb::Char hb::common::com::B0::data[];
#else
#define DECLARE_HB_COMMON_COM_CONSTEXPR_MEMBERS
#endif
} // namespace com } // namespace com
} // namespace common } // namespace common
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment