]> git.saurik.com Git - wxWidgets.git/commitdiff
define _AFXDLL to ensure that MFC libraries are linked in
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 1 Nov 2006 21:38:42 +0000 (21:38 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 1 Nov 2006 21:38:42 +0000 (21:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/mfc/stdafx.h

index 75c9084dcaf77d92f5b683e60ed5d8fb419be2fe..a814f87e7fa3574fbba2a987f1a3d89aa31cbc70 100644 (file)
@@ -1 +1,7 @@
+// normally this is defined by the IDE by "Using MFC" option but if it isn't
+// (e.g. because we use bakefile-generated projects), do it ourselves to ensure
+// that MFC libraries are linked in
+#ifndef _AFXDLL
+    #define _AFXDLL
+#endif
 #include <afxwin.h>