X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f157ad0815b1dfd9cadfdfe19731e4248af65c13..1b23f6f700ecb9396557859bc2623b3564146415:/include/wx/db.h diff --git a/include/wx/db.h b/include/wx/db.h index c21998ed64..225563e3f6 100644 --- a/include/wx/db.h +++ b/include/wx/db.h @@ -43,7 +43,7 @@ #include "wx/version.h" -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "db.h" #endif @@ -81,10 +81,15 @@ #include #include "wx/msw/winundef.h" #endif - // Use the ones from the library extern "C" { + #if defined(wxUSE_BUILTIN_IODBC) && wxUSE_BUILTIN_IODBC + // Use the ones from the library + #include "wx/isql.h" + #include "wx/isqlext.h" + #else #include #include + #endif } #endif