From 033f204a869972d26b0c2e32b732d8e2834dbfaf Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 27 Aug 2019 14:44:27 -0400 Subject: Fix .Net 2002 compile This testing occurs on Windows XP. We are still rockin it --- test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test.cpp') diff --git a/test.cpp b/test.cpp index 7a483f6a..be72405e 100644 --- a/test.cpp +++ b/test.cpp @@ -507,7 +507,7 @@ void SetArgvPathHint(const char* argv0, std::string& pathHint) #if defined(AT_EXECFN) if (getauxval(AT_EXECFN)) pathHint = getauxval(AT_EXECFN); -#elif defined(_MSC_VER) +#elif defined(_MSC_VER) && (_MSC_VER > 1310) char* pgmptr = NULLPTR; errno_t err = _get_pgmptr(&pgmptr); if (err == 0 && pgmptr != NULLPTR) -- cgit v1.2.1