]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for gcc
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 2 Aug 2003 16:27:21 +0000 (16:27 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 2 Aug 2003 16:27:21 +0000 (16:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/db.h

index 1b8e9acdaf2a214e22cbfad5f9e668413b6ea129..f64b24d699b475ac8230038a22c2405ceb4f68e4 100644 (file)
@@ -52,7 +52,7 @@
 #include "wx/defs.h"
 #include "wx/string.h"
 
-#ifdef __VISUALC__
+#if defined(__VISUALC__) 
     // we need to include standard Windows headers but we can't include
     // <windows.h> directly when using MFC because it includes it itself in a
     // different manner
     #include "sqlext.h"
     #include "odbcinst.h"
 #else
+    #if defined(__WINDOWS__) && defined(HAVE_W32API_H)
+        #include <windows.h>
+        #include "wx/msw/winundef.h"
+    #endif
     // Use the ones from the library
     extern "C" {
         #include <sql.h>