diff --git a/monetdb/msvc/monetdb_config.h b/monetdb/msvc/monetdb_config.h index 11be9fb..d47fef2 100644 --- a/monetdb/msvc/monetdb_config.h +++ b/monetdb/msvc/monetdb_config.h @@ -351,7 +351,7 @@ typedef __uint128_t uhge; #define __attribute__(a) #endif -#if !defined(__cplusplus) || __cplusplus < 201103L +#if !defined(__cplusplus) || (__cplusplus < 201103L&&(!defined(_MSC_VER)||_MSC_VER<1600)) #ifndef static_assert /* static_assert is a C11/C++11 feature, defined in assert.h which also exists * in many other compilers we ignore it if the compiler doesn't support it diff --git a/msc-plugin/msc-plugin.vcxproj b/msc-plugin/msc-plugin.vcxproj index 7bc92bd..9dc1824 100644 --- a/msc-plugin/msc-plugin.vcxproj +++ b/msc-plugin/msc-plugin.vcxproj @@ -30,14 +30,14 @@ DynamicLibrary true - v143 + v142 Unicode false DynamicLibrary false - v143 + v142 true Unicode true @@ -45,7 +45,7 @@ DynamicLibrary true - v143 + v142 Unicode false false @@ -53,7 +53,7 @@ DynamicLibrary false - v143 + v142 true Unicode true @@ -102,6 +102,7 @@ Guard true $(ProjectDir)\..\monetdb\msvc + /WL %(AdditionalOptions) Console @@ -119,8 +120,9 @@ true _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) true - stdcpplatest + stdcpp17 $(ProjectDir)\..\monetdb\msvc + Default Console @@ -146,6 +148,7 @@ true false $(ProjectDir)\..\monetdb\msvc + /WL %(AdditionalOptions) Console @@ -163,8 +166,9 @@ true _CRT_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) true - stdcpplatest + stdcpp17 $(ProjectDir)\..\monetdb\msvc + Default Console diff --git a/requirements.txt b/requirements.txt index 356f166..6f8b7d1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ mo-future -mo-dots==8.20.21357 +mo-dots mo-parsing mo-imports readline; sys_platform != 'win32' diff --git a/server/table.h b/server/table.h index 79853a7..4dcc4ec 100644 --- a/server/table.h +++ b/server/table.h @@ -8,6 +8,7 @@ #include #include #include "io.h" +#undef ERROR template class vector_type; template <> @@ -30,7 +31,7 @@ class ColRef : public vector_type<_Ty> public: typedef ColRef<_Ty> Decayed_t; const char* name; - types::Type_t ty = types::ERROR; + types::Type_t ty = types::Type_t::ERROR; ColRef() : vector_type<_Ty>(0), name("") {} ColRef(const uint32_t& size, const char* name = "") : vector_type<_Ty>(size), name(name) {} ColRef(const char* name) : name(name) {} diff --git a/server/types.h b/server/types.h index 0f5bb97..c396774 100644 --- a/server/types.h +++ b/server/types.h @@ -49,7 +49,7 @@ namespace types { #define ULL_Type __uint128_t #define LL_Type __int128_t #else -#define F_INT128 +#define F_INT128(__F_) #define ULL_Type unsigned long long #define LL_Type long long #endif