X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7818a75c167907fa70dcaeada49c9d8ba82d599f..f155075229d771430f0793700f5048ad4be00e9d:/samples/mfc/stdafx.h?ds=sidebyside

diff --git a/samples/mfc/stdafx.h b/samples/mfc/stdafx.h
index 75c9084dca..a814f87e7f 100644
--- a/samples/mfc/stdafx.h
+++ b/samples/mfc/stdafx.h
@@ -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>