X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d3820b348955b748fa0ab3076f4ed9763ce4bee..2d996ed1c44a591c610e51d58d0bf9f802fac165:/include/wx/odbc.h diff --git a/include/wx/odbc.h b/include/wx/odbc.h index 934e46270b..2ade1bae75 100644 --- a/include/wx/odbc.h +++ b/include/wx/odbc.h @@ -11,20 +11,33 @@ #include "wx/setup.h" -#if USE_ODBC +#if wxUSE_ODBC #ifdef __GNUG__ #pragma interface "odbc.h" #endif -#ifndef __ODBCH__ -#define __ODBCH__ +#ifndef _WX_ODBCH__ +#define _WX_ODBCH__ -#ifdef __WINDOWS__ +#ifdef __WXMSW__ #include #endif + +#ifdef __WXGTK__ +extern "C" { +#include "../../src/iodbc/isql.h" +#include "../../src/iodbc/isqlext.h" +#include "../../src/iodbc/odbc_funcs.h" +#include "../../src/iodbc/odbc_types.h" +typedef float SFLOAT; +typedef double SDOUBLE; +#define ULONG UDWORD +} +#else #include +#endif #include "wx/defs.h" #include "wx/list.h" @@ -70,7 +83,7 @@ class WXDLLEXPORT wxDatabase: public wxObject bool err_occured; wxList recordSets; // Record sets: Added by JACS - + public: wxDatabase(void); ~wxDatabase(void); @@ -323,4 +336,4 @@ class WXDLLEXPORT wxRecordSet: public wxObject #endif -#endif // USE_ODBC +#endif // wxUSE_ODBC