--- CMakeLists.txt	2007-09-19 11:19:17.000000000 +0200
+++ CMakeLists.txt	2011-02-11 15:18:33.827847000 +0100
@@ -231,6 +231,7 @@
 ADD_DEFINITIONS(-DHAVE_CONFIG_H)
 
 IF(WIN32)
+	ADD_DEFINITIONS(-D_BIND_TO_CURRENT_MFC_VERSION=1 -D_BIND_TO_CURRENT_CRT_VERSION=1)
 	ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
 ENDIF(WIN32)
 
