X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04ef50df3a0fa3c343800c554e609f98fc7575cc..23d2edff3505385801313910ece449bdb959f0f1:/src/msw/main.cpp diff --git a/src/msw/main.cpp b/src/msw/main.cpp index f9a4ae5e65..9c99ed611c 100644 --- a/src/msw/main.cpp +++ b/src/msw/main.cpp @@ -33,6 +33,12 @@ #include "wx/msw/private.h" +// Don't implement WinMain if we're building an MFC/wxWindows +// hybrid app. +#if wxUSE_MFC && !defined(NOMAIN) +#define NOMAIN 1 +#endif + // from src/msw/app.cpp extern void WXDLLEXPORT wxEntryCleanup(); @@ -66,11 +72,11 @@ HINSTANCE wxhInstance = 0; #if !defined(_WINDLL) -#if defined(__TWIN32__) || defined(__WXWINE__) || defined(__WXMICROWIN__) +#if defined(__TWIN32__) || defined(__WXMICROWIN__) #define HINSTANCE HANDLE extern "C" -#endif // WINE +#endif int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,