diff --git a/src/assert.cpp b/src/assert.cpp index e24d08fe2..2f7559a15 100644 --- a/src/assert.cpp +++ b/src/assert.cpp @@ -131,7 +131,8 @@ TORRENT_EXPORT void print_backtrace(char* out, int len, int max_depth) free(symbols); } -#elif defined WIN32 +// visual studio 9 and up appears to support this +#elif defined WIN32 && _MSC_VER >= 1500 #undef _WIN32_WINNT #define _WIN32_WINNT 0x0501 // XP