From f1182b8d73acfc187a483e7d5375bd1b5341c99b Mon Sep 17 00:00:00 2001 From: clanmills Date: Sat, 2 May 2020 17:37:03 +0100 Subject: [PATCH] Only #include when C++ >= C++11 --- include/exiv2/config.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/exiv2/config.h b/include/exiv2/config.h index 6d861e8f..2dddcae8 100644 --- a/include/exiv2/config.h +++ b/include/exiv2/config.h @@ -94,14 +94,12 @@ typedef int pid_t; ////////////////////////////////////// // https://softwareengineering.stackexchange.com/questions/291141/how-to-handle-design-changes-for-auto-ptr-deprecation-in-c11 -#include -#include -#include #if __cplusplus >= 201103L + #include + #include + #include template using auto_ptr = std::unique_ptr; -#else - using std::auto_ptr; #endif #endif // _CONFIG_H_