From: Gregg Lewis Smith Date: Wed, 25 May 2016 16:29:59 +0000 (+0000) Subject: _setargv will not compile on _MSC_VER > 1700 MS documentation's example simply does... X-Git-Tag: 2.4.21~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=752b1e211ed70e2d799bcd201de95b4a3db2fd1e;p=thirdparty%2Fapache%2Fhttpd.git _setargv will not compile on _MSC_VER > 1700 MS documentation's example simply does not work. Disabe for now, Apachemonitor still works. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1745517 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/win32/ApacheMonitor.c b/support/win32/ApacheMonitor.c index c6021f3b19b..26b54a00dbe 100644 --- a/support/win32/ApacheMonitor.c +++ b/support/win32/ApacheMonitor.c @@ -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))