]> granicus.if.org Git - apache/commitdiff
_setargv will not compile on _MSC_VER > 1700 MS documentation's example simply does...
authorGregg Lewis Smith <gsmith@apache.org>
Wed, 25 May 2016 16:27:59 +0000 (16:27 +0000)
committerGregg Lewis Smith <gsmith@apache.org>
Wed, 25 May 2016 16:27:59 +0000 (16:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1745516 13f79535-47bb-0310-9956-ffa450edef68

support/win32/ApacheMonitor.c

index c6021f3b19b0b728599aaf045356e9b63722abbc..26b54a00dbedf57f8cdefa3c9140da6265fc0c14 100644 (file)
@@ -1586,7 +1586,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
 #ifdef UNICODE
     __wargv = CommandLineToArgvW(GetCommandLineW(), &__argc);
 #else
+#if defined(_MSC_VER) && _MSC_VER < 1800 
     _setargv();
+#endif
 #endif
 
     if ((__argc == 2) && (_tcscmp(__targv[1], _T("--kill")) == 0))