Include windows.h before sql headers, if compiling with VC++. Otherwise, for files

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
This commit is contained in:
Julian Smart 2001-11-24 12:58:09 +00:00
parent 42993df25e
commit d96083979d

View File

@ -59,6 +59,16 @@
extern "C" { extern "C" {
#ifdef __VISUALC__ #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, // If you use the wxDbCreateDataSource() function with MSW/VC6,
// you cannot use the iODBC headers, you must use the VC headers, // you cannot use the iODBC headers, you must use the VC headers,
// plus the odbcinst.h header - gt Nov 2 2000 // plus the odbcinst.h header - gt Nov 2 2000