From 6cd0e218bf085e0ec4b4d90b8e1b7494825fc95c Mon Sep 17 00:00:00 2001 From: Gregg Lewis Smith Date: Wed, 25 May 2016 16:27:59 +0000 Subject: [PATCH] _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/trunk@1745516 13f79535-47bb-0310-9956-ffa450edef68 --- support/win32/ApacheMonitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/support/win32/ApacheMonitor.c b/support/win32/ApacheMonitor.c index c6021f3b19..26b54a00db 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)) -- 2.40.0