Add macro checks for enable code for old gcc version (< 40800)

main/yubo-dev
Nuno 3 years ago
parent 3069d648e6
commit 9fc091f99b

@ -52,7 +52,11 @@ public:
/// filePath: [out] ex. /games/nel/stream/00/00/000000000.. /// filePath: [out] ex. /games/nel/stream/00/00/000000000..
/// hash: [in] /// hash: [in]
/// name: [in] name for debugging purposes /// name: [in] name for debugging purposes
#if defined(NL_COMP_GCC) && (GCC_VERSION < 40800)
virtual bool getFile(std::string &filePath, const NLMISC::CHashKey &hash, const std::string &name);
#else
virtual bool getFile(std::string &filePath, const NLMISC::CHashKey &hash, const std::string &name) NL_OVERRIDE; virtual bool getFile(std::string &filePath, const NLMISC::CHashKey &hash, const std::string &name) NL_OVERRIDE;
#endif
public: public:
/// Set storage path (ex. stream/) /// Set storage path (ex. stream/)

@ -296,13 +296,13 @@ public:
#if defined(NL_COMP_GCC) && (GCC_VERSION < 40800) #if defined(NL_COMP_GCC) && (GCC_VERSION < 40800)
virtual const char *getTypeAsString() const; virtual const char *getTypeAsString() const;
virtual bool set(const std::string& key, sint64 value) NL_OVERRIDE; virtual bool set(const std::string& key, sint64 value);
virtual bool set(const std::string& key, double value) NL_OVERRIDE; virtual bool set(const std::string& key, double value);
virtual bool set(const std::string& key, const std::string&value) NL_OVERRIDE; virtual bool set(const std::string& key, const std::string&value);
virtual bool setObject(const std::string& key, CObject* value) NL_OVERRIDE; virtual bool setObject(const std::string& key, CObject* value);
virtual CObject* clone() const NL_OVERRIDE; virtual CObject* clone() const;
virtual void dump(const std::string prefix = "", uint depth = 0) const; virtual void dump(const std::string prefix = "", uint depth = 0) const;
@ -327,18 +327,18 @@ protected:
#if defined(NL_COMP_GCC) && (GCC_VERSION < 40800) #if defined(NL_COMP_GCC) && (GCC_VERSION < 40800)
virtual void doSerialize(std::string& out, CSerializeContext& context) const; virtual void doSerialize(std::string& out, CSerializeContext& context) const;
virtual bool doIsNumber() const NL_OVERRIDE; virtual bool doIsNumber() const;
virtual double doToNumber() const NL_OVERRIDE; virtual double doToNumber() const;
virtual bool doIsInteger() const NL_OVERRIDE; virtual bool doIsInteger() const;
virtual sint64 doToInteger() const NL_OVERRIDE; virtual sint64 doToInteger() const;
virtual std::string doToString() const NL_OVERRIDE; virtual std::string doToString() const;
virtual void inPlaceCopyTo(CObject &dest) const NL_OVERRIDE; virtual void inPlaceCopyTo(CObject &dest) const;
virtual void inPlaceCopy(const CObjectNumber &src) NL_OVERRIDE; virtual void inPlaceCopy(const CObjectNumber &src);
virtual void visitInternal(IObjectVisitor &visitor); virtual void visitInternal(IObjectVisitor &visitor);
#else #else

Loading…
Cancel
Save