diff --git a/include/wx/rawbmp.h b/include/wx/rawbmp.h index 6a15042c23..dd0485d8a8 100644 --- a/include/wx/rawbmp.h +++ b/include/wx/rawbmp.h @@ -680,7 +680,18 @@ struct wxPixelDataOut #endif //wxUSE_GUI -template ::Format > +// FIXME-VC6: VC6 doesn't like typename in default template parameters while +// it is necessary with standard-conforming compilers, remove this +// #define and just use typename when we drop VC6 support +#if defined(__VISUALC__) && !wxCHECK_VISUALC_VERSION(7) + #define wxTYPENAME_IN_TEMPLATE_DEFAULT_PARAM +#else + #define wxTYPENAME_IN_TEMPLATE_DEFAULT_PARAM typename +#endif + +template ::Format > class wxPixelData : public wxPixelDataOut::template wxPixelDataIn { diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 9c5011f730..c24475e00e 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -103,6 +103,9 @@ typedef HRESULT (CALLBACK* DLLGETVERSIONPROC)(DLLVERSIONINFO *); #endif // defined(DLLVERSIONINFO) +#ifndef ATTACH_PARENT_PROCESS + #define ATTACH_PARENT_PROCESS ((DWORD)-1) +#endif // --------------------------------------------------------------------------- // global variables