#include <windows.h>
#endif
-#ifdef _IODBC_
+#ifdef __UNIX__
#if wxMAJOR_VERSION == 2
extern "C" {
#include "../../src/iodbc/isql.h"
typedef double SDOUBLE;
typedef unsigned int UINT;
#define ULONG UDWORD
+#elif defined(__WXMAC__)
+ extern "C" {
+ #include "../../src/iodbc/isql.h"
+ #include "../../src/iodbc/isqlext.h"
+ }
+ typedef float SFLOAT;
+ typedef double SDOUBLE;
+ typedef unsigned int UINT;
+ #define ULONG UDWORD
#else // msw
#define ODBCVER 0x0250
#include <sql.h>
#include <sqlext.h>
#endif
-#ifdef __UNIX__
+#ifdef __UNIX__
# ifndef strnicmp
# define strnicmp strncasecmp
# endif
# ifndef stricmp
# define stricmp strcasecmp
# endif
+#elif defined(__WXMAC__)
#else
# include <io.h>
#endif
};
-#if __WXDEBUG__ > 0
+#ifdef __WXDEBUG__
+#include "wx/object.h"
class CstructTablesInUse : public wxObject
{
public:
// for other code segments to use, or close all of them when the application has
// completed.
-wxDB* WXDLLEXPORT GetDbConnection(DbStuff *pDbStuff);
+wxDB WXDLLEXPORT *GetDbConnection(DbStuff *pDbStuff);
bool WXDLLEXPORT FreeDbConnection(wxDB *pDb);
void WXDLLEXPORT CloseDbConnections(void);
int WXDLLEXPORT NumberDbConnectionsInUse(void);