mirror of
https://github.com/edubart/otclient.git
synced 2025-12-14 04:49:45 +01:00
fix compiling on gcc 4.6 (too early to use 4.7.1...)
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
namespace stdext {
|
||||
class attrib_storage {
|
||||
public:
|
||||
attrib_storage() : m_attribs(nullptr), m_size(0) { }
|
||||
~attrib_storage() { if(m_attribs) delete[] m_attribs; }
|
||||
|
||||
template<typename T>
|
||||
@@ -74,8 +75,8 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
std::tuple<uint8, boost::any>* m_attribs = nullptr;
|
||||
uint8 m_size = 0;
|
||||
std::tuple<uint8, boost::any>* m_attribs;
|
||||
uint8 m_size;
|
||||
};
|
||||
|
||||
// restore memory alignment
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
// clang is supported
|
||||
#undef _GLIBCXX_USE_FLOAT128
|
||||
#elif defined(__GNUC__)
|
||||
#if !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7))
|
||||
#error "Sorry, you need gcc 4.7 or greater to compile."
|
||||
#if !(__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
|
||||
#error "Sorry, you need gcc 4.6 or greater to compile."
|
||||
#endif
|
||||
#else
|
||||
#error "Compiler not supported."
|
||||
|
||||
Reference in New Issue
Block a user