From b100ede72e2c86073e5587971eff8932dd5b0158 Mon Sep 17 00:00:00 2001 From: MeanSquaredError <35379301+MeanSquaredError@users.noreply.github.com> Date: Mon, 2 Sep 2024 21:37:27 +0300 Subject: [PATCH] Move the CXX_STD_VER macro to a separate header file. --- include/sqlpp11/compat/cxx_std_ver.h | 7 +++++++ include/sqlpp11/compat/make_unique.h | 8 ++------ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 include/sqlpp11/compat/cxx_std_ver.h diff --git a/include/sqlpp11/compat/cxx_std_ver.h b/include/sqlpp11/compat/cxx_std_ver.h new file mode 100644 index 00000000..92328daf --- /dev/null +++ b/include/sqlpp11/compat/cxx_std_ver.h @@ -0,0 +1,7 @@ +#pragma once + +#ifdef _MSVC_LANG +#define CXX_STD_VER _MSVC_LANG +#else +#define CXX_STD_VER __cplusplus +#endif diff --git a/include/sqlpp11/compat/make_unique.h b/include/sqlpp11/compat/make_unique.h index b030c736..57fbbbb9 100644 --- a/include/sqlpp11/compat/make_unique.h +++ b/include/sqlpp11/compat/make_unique.h @@ -26,13 +26,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include +#include -#ifdef _MSVC_LANG -#define CXX_STD_VER _MSVC_LANG -#else -#define CXX_STD_VER __cplusplus -#endif +#include namespace sqlpp {