]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/odbc.h
SOCKLEN_T expanded to socklen_t if supported, neede by ALPHA (yes, it's back!)
[wxWidgets.git] / include / wx / odbc.h
index 0f6756adcca9bf2382fa908d2e617010a0e3cb95..90fcbaea0c919fc71e83e0e6e4eeb5c3c53ff887 100644 (file)
 
 #include "wx/setup.h"
 
-#if USE_ODBC
+#if wxUSE_ODBC
 
-#ifndef __ODBCH__
-#define __ODBCH__
+#ifdef __GNUG__
+#pragma interface "odbc.h"
+#endif
+
+#ifndef _WX_ODBCH__
+#define _WX_ODBCH__
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <windows.h>
 #endif
 
+
+#ifdef __WXGTK__
+extern "C" {
+#include <../iodbc/isql.h>
+#include <../iodbc/isqlext.h>
+#include <../iodbc/odbc_funcs.h>
+#include <../iodbc/odbc_types.h>
+typedef float   SFLOAT;
+typedef double  SDOUBLE;
+#define ULONG UDWORD
+}
+#else
 #include <sqlext.h>
+#endif
 
 #include "wx/defs.h"
 #include "wx/list.h"
@@ -66,7 +83,7 @@ class WXDLLEXPORT wxDatabase: public wxObject
   bool err_occured;
 
   wxList recordSets; // Record sets: Added by JACS
-
+  
  public:
   wxDatabase(void);
   ~wxDatabase(void);
@@ -319,4 +336,4 @@ class WXDLLEXPORT wxRecordSet: public wxObject
 
 #endif
 
-#endif  // USE_ODBC
+#endif  // wxUSE_ODBC