diff --git a/test/testmessage.c b/test/testmessage.c index f670d3599f..30c7005436 100644 --- a/test/testmessage.c +++ b/test/testmessage.c @@ -11,13 +11,17 @@ */ /* Simple test of the SDL MessageBox API */ - #include #include #include #include +/* This enables themed Windows dialogs when building with Visual Studio */ +#if defined(SDL_PLATFORM_WINDOWS) && defined(_MSC_VER) +#pragma comment(linker, "\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") +#endif + /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */ static void quit(int rc)