Skip to content

Commit 08361f3

Browse files
committed
Added check for proper version of MFC to fix <VS2010 compilation
1 parent a9ec61a commit 08361f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

winplace.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
static char BASED_CODE THIS_FILE[] = __FILE__;
1414
#endif
1515

16+
// Version 10 of the MFC framework removed functions we need.
17+
// Which means we need to force generation of stubs in that case.
18+
// See: http://cppdepend.wordpress.com/2010/08/29/visual-c-2010-what’s-new-for-mfc-library/
19+
#if _MFC_VER >= 0x0A00
1620
#define COMPILE_MULTIMON_STUBS
21+
#endif
22+
1723
#include <MULTIMON.H>
1824

1925
CWindowPlacement::CWindowPlacement()

0 commit comments

Comments
 (0)