Revision bb50181da1730e04b588f06bdf3be0d6993923f8 authored by Ian Bell on 02 August 2014, 10:40:01 UTC, committed by Ian Bell on 02 August 2014, 10:40:01 UTC
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
1 parent ef7aaec
crossplatform_shared_ptr.h
#ifndef CROSSPLATFORM_SHARED_PTR
#define CROSSPLATFORM_SHARED_PTR
#include "PlatformDetermination.h"
// Based on the platform and compiler, include the necessary header to give access to std::tr1::shared_ptr directly as shared_ptr
#if defined(__ISLINUX__) && (defined(__llvm__) || defined(__clang__))
#include <memory>
using std::shared_ptr;
#elif defined(__ISLINUX__)
#include <tr1/memory>
using namespace std::tr1;
#elif defined(__ISAPPLE__)
#include <memory>
using std::shared_ptr;
#elif defined(__ISWINDOWS__) && defined(__MINGW32__)
#include <tr1/memory>
using namespace std::tr1;
#elif defined(__ISWINDOWS__) && !defined(__MINGW32__)
#include <memory>
using namespace std::tr1;
#else
#pragma error
#endif
#endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...