From 759a9e5c590cfe86a14ea3efbb71d71d7a7e16fa Mon Sep 17 00:00:00 2001 From: Diogo Franco Date: Mon, 25 Apr 2011 15:24:25 +0000 Subject: [PATCH] Fix windows compilation with --disable-network Compilation happened to work because libavformat/network.h includes winsock2.h, which included windows.h, but this is not the case with --disable-network. Make sure to include the needed headers. --- cmdutils.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/cmdutils.c b/cmdutils.c index f25f61d..38fcb38 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -156,6 +156,10 @@ static const OptionDef* find_option(const OptionDef *po, const char *name){ } #if defined(_WIN32) && !defined(__MINGW32CE__) +#define WIN32_LEAN_AND_MEAN +#include +#include + /* Will be leaked on exit */ static char** win32_argv_utf8 = NULL; static int win32_argc = 0; -- 1.7.4