]> git.saurik.com Git - wxWidgets.git/commitdiff
Include windows.h before sql headers, if compiling with VC++. Otherwise, for files
authorJulian Smart <julian@anthemion.co.uk>
Sat, 24 Nov 2001 12:58:09 +0000 (12:58 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 24 Nov 2001 12:58:09 +0000 (12:58 +0000)
that don't use wxprec.h (non-sample/demo files), windows.h may not have been included,
and sqltypes.h will fail to compile.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/db.h

index 57ec4345f7015779c15317f61a13bb2b43bc9f90..cc2c1d84e8e1f1f3c5c465a449ca519ed7bb0e93 100644 (file)
 
 extern "C" {
 #ifdef __VISUALC__
+// include standard Windows headers
+#if defined(__WXMSW__) && !wxUSE_MFC
+    #ifndef STRICT
+        #define STRICT 1
+    #endif
+
+    #include <windows.h>
+    #include "wx/msw/winundef.h"
+#endif
+
 // If you use the wxDbCreateDataSource() function with MSW/VC6,
 // you cannot use the iODBC headers, you must use the VC headers,
 // plus the odbcinst.h header - gt Nov 2 2000