From 7ca344ebfd605caf664158152ae552fe5c520ca4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 18 Feb 2022 06:20:13 +0100 Subject: cleanup WinMain declaration --- main.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 879ae364..2e34393e 100644 --- a/main.cpp +++ b/main.cpp @@ -82,11 +82,14 @@ void application::drawEvent() { MAGNUM_APPLICATION_MAIN(Magnum::Examples::application); -#include - -#if defined _MSC_VER -int __stdcall WinMain(HINSTANCE, HINSTANCE, LPSTR, int /* nCmdShow */) -{ +#ifdef _MSC_VER +# include +# ifdef __clang__ +# pragma clang diagnostic ignored "-Wmissing-prototypes" +# pragma clang diagnostic ignored "-Wmain" +# endif + +extern "C" int __stdcall WinMain(void*, void*, void*, int /* nCmdShow */) { return main(__argc, __argv); } #endif -- cgit v1.2.3