summaryrefslogtreecommitdiff
path: root/autoptr.h
blob: 4dc026346f49bc28f0e6b92ba120146ed8b9839f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef VDR_LIVE_AUTOPTR_H
#define VDR_LIVE_AUTOPTR_H

#define GCC_VERSION (__GNUC__ * 10000 \
                     + __GNUC_MINOR__ * 100 \
                     + __GNUC_PATCHLEVEL__)

# include <memory>

#if GCC_VERSION > 50000
# define AUTO_PTR  std::unique_ptr
#else
# define AUTO_PTR  std::auto_ptr
#endif

#endif // VDR_LIVE_AUTOPTR_H