diff --git a/cmdutils.c b/cmdutils.c index 2d9a33dcdd..fd8ff50e38 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -200,7 +200,7 @@ static const OptionDef *find_option(const OptionDef *po, const char *name) return po; } -#if defined(_WIN32) && !defined(__MINGW32CE__) +#if HAVE_COMMANDLINETOARGVW #include #include /* Will be leaked on exit */ @@ -260,7 +260,7 @@ static inline void prepare_app_arguments(int *argc_ptr, char ***argv_ptr) { /* nothing to do */ } -#endif /* WIN32 && !__MINGW32CE__ */ +#endif /* HAVE_COMMANDLINETOARGVW */ int parse_option(void *optctx, const char *opt, const char *arg, const OptionDef *options) diff --git a/configure b/configure index 6260941189..91bf67323d 100755 --- a/configure +++ b/configure @@ -1324,6 +1324,7 @@ HAVE_LIST=" clock_gettime closesocket cmov + CommandLineToArgvW cpunop CryptGenRandom dcbzl diff --git a/libavutil/file.c b/libavutil/file.c index 5aa4b9c0d1..41850f835b 100644 --- a/libavutil/file.c +++ b/libavutil/file.c @@ -25,10 +25,12 @@ #if HAVE_UNISTD_H #include #endif +#if HAVE_IO_H +#include +#endif #if HAVE_MMAP #include #elif HAVE_MAPVIEWOFFILE -#include #include #endif