Removed dependency on boost when Qt is used.

This commit is contained in:
xawotihs
2015-09-24 23:20:52 +02:00
parent b4e0f2c991
commit b8b5362ba5
7 changed files with 38 additions and 16 deletions

View File

@@ -1,8 +1,6 @@
#ifndef OBJECTANALYTICS_H
#define OBJECTANALYTICS_H
#include <boost/cstdint.hpp>
#ifdef _DEBUG
#define TRACK_OBJECT_USAGE
#endif

View File

@@ -21,8 +21,9 @@
#include "GameOptions.h"
#ifndef WP8
#if !defined(WP8) && !defined(QT_CONFIG)
#include <boost/shared_ptr.hpp>
#include <boost/scoped_ptr.hpp>
#endif
#if defined (WP8) || defined (IOS) || defined (ANDROID) || defined (QT_CONFIG) || defined (SDL_CONFIG)

View File

@@ -4,6 +4,15 @@
#if (__cplusplus > 199711L)
#include <memory>
typedef std::shared_ptr<JQuad> JQuadPtr;
#elif defined(QT_CONFIG)
#include <QSharedPointer>
class JQuadPtr : public QSharedPointer<JQuad>
{
public:
JQuadPtr() : QSharedPointer(){};
JQuadPtr(JQuad*ptr) : QSharedPointer(ptr){};
JQuad* get() const {return data();};
};
#else
#include <boost/shared_ptr.hpp>
typedef boost::shared_ptr<JQuad> JQuadPtr;