diff options
Diffstat (limited to 'autoptr.h')
-rw-r--r-- | autoptr.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/autoptr.h b/autoptr.h new file mode 100644 index 0000000..3349367 --- /dev/null +++ b/autoptr.h @@ -0,0 +1,14 @@ +#ifndef VDR_LIVE_AUTOPTR_H +#define VDR_LIVE_AUTOPTR_H + +#define GCC_VERSION (__GNUC__ * 10000 \ + + __GNUC_MINOR__ * 100 \ + + __GNUC_PATCHLEVEL__) + +#if GCC_VERSION > 50000 +# define AUTO_PTR std::unique_ptr +#else +# define AUTO_PTR std::auto_ptr +#endif + +#endif // VDR_LIVE_AUTOPTR_H |