summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-12 14:32:54 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-12 14:32:54 +0000
commit3c46e9a5151c88950e13ac6c2132496ca871ff87 (patch)
tree0b4ff508be09a0eb1556e4de1753757c6b7d2373 /include
parentd0eddcf25a3f69b2b9ad67273699d1e5204b3b63 (diff)
time API unborkred
git-svn-id: http://svn.miranda-ng.org/main/trunk@927 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r--include/m_timezones.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/m_timezones.h b/include/m_timezones.h
index 39681cef1c..cf8fda340b 100644
--- a/include/m_timezones.h
+++ b/include/m_timezones.h
@@ -33,6 +33,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define LOCAL_TIME_HANDLE NULL
#define UTC_TIME_HANDLE ((void*)-1)
+typedef INT_PTR mir_time;
+
typedef struct
{
size_t cbSize;
@@ -42,14 +44,14 @@ typedef struct
void (*storeByContact)(HANDLE hContact, HANDLE hTZ);
int (*printDateTime)(HANDLE hTZ, LPCTSTR szFormat, LPTSTR szDest, int cbDest, DWORD dwFlags);
- int (*printTimeStamp)(HANDLE hTZ, time_t ts, LPCTSTR szFormat, LPTSTR szDest, int cbDest, DWORD dwFlags);
+ int (*printTimeStamp)(HANDLE hTZ, mir_time ts, LPCTSTR szFormat, LPTSTR szDest, int cbDest, DWORD dwFlags);
int (*prepareList)(HANDLE hContact, HWND hWnd, DWORD dwFlags);
int (*selectListItem)(HANDLE hContact, HWND hWnd, DWORD dwFlags);
void (*storeListResults)(HANDLE hContact, HWND hWnd, DWORD dwFlags);
int (*getTimeZoneTime)(HANDLE hTZ, SYSTEMTIME *st);
- time_t (*timeStampToTimeZoneTimeStamp)(HANDLE hTZ, time_t ts);
+ mir_time (*timeStampToTimeZoneTimeStamp)(HANDLE hTZ, mir_time ts);
LPTIME_ZONE_INFORMATION (*getTzi)(HANDLE hTZ);
LPCTSTR (*getTzName)(HANDLE hTZ);
@@ -58,7 +60,7 @@ typedef struct
int printDateTimeByContact (HANDLE hContact, LPCTSTR szFormat, LPTSTR szDest, int cbDest, DWORD dwFlags)
{ return printDateTime(createByContact(hContact, dwFlags), szFormat, szDest, cbDest, dwFlags); }
- int printTimeStampByContact(HANDLE hContact, time_t ts, LPCTSTR szFormat, LPTSTR szDest, int cbDest, DWORD dwFlags)
+ int printTimeStampByContact(HANDLE hContact, mir_time ts, LPCTSTR szFormat, LPTSTR szDest, int cbDest, DWORD dwFlags)
{ return printTimeStamp(createByContact(hContact, dwFlags), ts, szFormat, szDest, cbDest, dwFlags); }
LPTIME_ZONE_INFORMATION getTziByContact(HANDLE hContact)
@@ -67,7 +69,7 @@ typedef struct
int getTimeZoneTimeByContact(HANDLE hContact, SYSTEMTIME *st)
{ return getTimeZoneTime(createByContact(hContact, 0), st); }
- time_t timeStampToTimeZoneTimeStampByContact(HANDLE hContact, time_t ts)
+ mir_time timeStampToTimeZoneTimeStampByContact(HANDLE hContact, mir_time ts)
{ return timeStampToTimeZoneTimeStamp(createByContact(hContact, 0), ts); }
#endif