diff --git a/cmdutils.h b/cmdutils.h index 3fbaae93c24afd38281fc4ff04e261103b33c77e..c4a16aac7333db6f55a6f90ec1e1fd1bd3e1c4c3 100644 --- a/cmdutils.h +++ b/cmdutils.h @@ -30,7 +30,7 @@ #include "libavformat/avformat.h" #include "libswscale/swscale.h" -#ifdef __MINGW32__ +#ifdef _WIN32 #undef main /* We don't want SDL to override our main() */ #endif diff --git a/ffplay.c b/ffplay.c index fabb48c9cf1b7baf5e9b6733d5dbd1f8f84660e8..df7e870119547c0f2e3204360e15264c96a8ad28 100644 --- a/ffplay.c +++ b/ffplay.c @@ -3635,7 +3635,7 @@ int main(int argc, char **argv) flags &= ~SDL_INIT_AUDIO; if (display_disable) SDL_putenv(dummy_videodriver); /* For the event queue, we always need a video driver. */ -#if !defined(__MINGW32__) && !defined(__APPLE__) +#if !defined(_WIN32) && !defined(__APPLE__) flags |= SDL_INIT_EVENTTHREAD; /* Not supported on Windows or Mac OS X */ #endif if (SDL_Init (flags)) {