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 {