From: Torge Matthies tmatthies@codeweavers.com
--- dlls/msvcrt/cpp.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/dlls/msvcrt/cpp.c b/dlls/msvcrt/cpp.c index 27ae2bbd46d..0595508d36a 100644 --- a/dlls/msvcrt/cpp.c +++ b/dlls/msvcrt/cpp.c @@ -27,6 +27,7 @@ #include "wine/exception.h" #include "wine/debug.h" #include "msvcrt.h" +#include "corecrt.h" #include "mtdll.h" #include "cxx.h"
@@ -640,6 +641,18 @@ void throw_exception(const char* msg) } #endif
+#ifndef _MSVCR_VER +#pragma message "_MSVCR_VER is unset" +#error _MSVCR_VER is unset +#endif +#if _MSVCR_VER == 0 +#define STRINGIFY(x) #x +#define STRINGIFY2(x) STRINGIFY(x) +#pragma message "_MSVCR_VER:" STRINGIFY2(_MSVCR_VER) +#error _MSVCR_VER STRINGIFY2(_MSVCR_VER) +_MSVCR_VER +#endif + /****************************************************************** * ?set_terminate@@YAP6AXXZP6AXXZ@Z (MSVCRT.@) *