blob: 39a73af79ca8fa80fc00961e81d1a92ae8eee622 [file] [log] [blame]
Jeff Thompson571f3522013-07-07 22:39:31 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
4 * Alexander Afanasyev
5 * Zhenkai Zhu
6 *
7 * BSD license, See the LICENSE file for more information
8 *
9 * Author: Zhenkai Zhu <zhenkai@cs.ucla.edu>
10 * Alexander Afanasyev <alexander.afanasyev@ucla.edu>
11 */
12
13#ifndef NDN_COMMON_HPP
14#define NDN_COMMON_HPP
15
16#include "../config.h"
17
18// Depending on where ./configure found shared_ptr, define the ptr_lib namespace.
19// We always use ndn::ptr_lib::shared_ptr.
20#if HAVE_STD_SHARED_PTR
21#include <memory>
22namespace ndn { namespace ptr_lib = std; }
23#elif HAVE_BOOST_SHARED_PTR
24#include <boost/shared_ptr.hpp>
25#include <boost/make_shared.hpp>
26namespace ndn { namespace ptr_lib = boost; }
27#else
28#error "Can't find shared_ptr in std or boost"
29#endif
30
31#endif