fix compiling on gcc 4.6 (too early to use 4.7.1...)

This commit is contained in:
niczkx
2012-07-30 18:47:21 -06:00
parent 39db801f93
commit 4c369bc823
24 changed files with 53 additions and 52 deletions

View File

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

View File

@@ -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."