From c67b773e19e844d8abab6e82c12d673029d5432c Mon Sep 17 00:00:00 2001 From: David Webster Date: Wed, 9 Feb 2000 22:58:41 +0000 Subject: [PATCH] Updates to make latest changes compile git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/isqlext.h | 10 +++++----- include/wx/os2/setup.h | 2 +- src/common/event.cpp | 1 + src/common/timercmn.cpp | 4 ++++ 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/include/wx/isqlext.h b/include/wx/isqlext.h index 57304440ea..dcb8157066 100644 --- a/include/wx/isqlext.h +++ b/include/wx/isqlext.h @@ -7,8 +7,8 @@ * iODBC defines (ext) * * The iODBC driver manager. - * - * Copyright (C) 1995 by Ke Jin + * + * Copyright (C) 1995 by Ke Jin * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -27,7 +27,7 @@ #ifndef _ISQLEXT_H # define _ISQLEXT_H -#include "isql.h" +#include "wx/isql.h" /* * Generic constants @@ -1111,8 +1111,8 @@ RETCODE SQL_API SQLTables (HSTMT hstmt, UCHAR FAR * szTableQualifier, /* * Level 2 function prototypes */ -RETCODE SQL_API SQLBrowseConnect (HDBC hdbc, - UCHAR FAR * szConnStrIn, SWORD cbConnStrIn, UCHAR FAR * szConnStrOut, +RETCODE SQL_API SQLBrowseConnect (HDBC hdbc, + UCHAR FAR * szConnStrIn, SWORD cbConnStrIn, UCHAR FAR * szConnStrOut, SWORD cbConnStrOutMax, SWORD FAR * pcbConnStrOut); RETCODE SQL_API SQLColumnPrivileges (HSTMT hstmt, UCHAR FAR * szTableQualifier, SWORD cbTableQualifier, diff --git a/include/wx/os2/setup.h b/include/wx/os2/setup.h index fe1603d931..c9d5f43290 100644 --- a/include/wx/os2/setup.h +++ b/include/wx/os2/setup.h @@ -160,7 +160,7 @@ // Set this to 0 if your compiler can't cope // with omission of prototype parameters. -#define wxUSE_ODBC 0 +#define wxUSE_ODBC 1 // Define 1 to use ODBC classes #define wxODBC_FWD_ONLY_CURSORS 1 diff --git a/src/common/event.cpp b/src/common/event.cpp index ba257dcc46..50dd3a0790 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -75,6 +75,7 @@ const wxEventType wxEVT_COMMAND_SPINCTRL_UPDATED = wxEVT_FIRST + 18; /* Sockets send events, too */ const wxEventType wxEVT_SOCKET = wxEVT_FIRST + 50; +const wxEventType wxEVT_TIMER = wxEVT_FIRST + 80; /* Mouse event types */ const wxEventType wxEVT_LEFT_DOWN = wxEVT_FIRST + 100; diff --git a/src/common/timercmn.cpp b/src/common/timercmn.cpp index 000226700f..c350e8ca5b 100644 --- a/src/common/timercmn.cpp +++ b/src/common/timercmn.cpp @@ -245,6 +245,10 @@ wxLongLong wxGetLocalTimeMillis() SYSTEMTIME st; ::GetLocalTime(&st); return (val + st.wMilliseconds); +#elif defined(__VISAGECPP__) + DATETIME dt; + ::DosGetDateTime(&dt); + return (val + dt.hundredths*10); #elif defined(HAVE_GETTIMEOFDAY) struct timeval tp; if ( wxGetTimeOfDay(&tp, (struct timezone *)NULL) != -1 ) -- 2.45.2