[FFmpeg-cvslog] cmutils: include shellapi.h on Win32 (for CommandLineToArgvW).

Ronald S. Bultje git at videolan.org
Sun Jul 8 22:38:55 CEST 2012


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Sat Jul  7 13:46:26 2012 -0700| [66a297975d19e0d9b8a5ff8a723dcd2116a506ce] | committer: Ronald S. Bultje

cmutils: include shellapi.h on Win32 (for CommandLineToArgvW).

This is required for CommandLineToArgvW. Normally, shellapi.h is included
implicitly by windows.h, but if we define WIN32_LEAN_AND_MEAN (or some of
the other earlier headers have included windows.h with that option),
windows.h doesn't include this one.

Thus explicitly include the headers we really need, for clarity and
compatibility.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66a297975d19e0d9b8a5ff8a723dcd2116a506ce
---

 cmdutils.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/cmdutils.c b/cmdutils.c
index 6d13bd6..11a5f03 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -162,6 +162,7 @@ static const OptionDef *find_option(const OptionDef *po, const char *name)
 
 #if defined(_WIN32) && !defined(__MINGW32CE__)
 #include <windows.h>
+#include <shellapi.h>
 /* Will be leaked on exit */
 static char** win32_argv_utf8 = NULL;
 static int win32_argc = 0;



More information about the ffmpeg-cvslog mailing list