From 4b06f6199b3d15642912726a7f80e6ceb0a4ba6a Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Mon, 14 Apr 2008 19:54:12 +0000 Subject: [PATCH] Vista compatibility --- event.h | 5 +++++ eventdispatcher.cc | 3 +++ 2 files changed, 8 insertions(+) diff --git a/event.h b/event.h index 4b8a2f2..d118b38 100644 --- a/event.h +++ b/event.h @@ -38,8 +38,13 @@ class Event void setdescription(const char* description); ULONG id; + #ifdef WIN32 + time_t time; + time_t duration; + #else ULONG time; ULONG duration; + #endif // FIXME sort this out, causes signedness problems under linux char* title; char* subtitle; diff --git a/eventdispatcher.cc b/eventdispatcher.cc index b2aa5fd..b03f23d 100644 --- a/eventdispatcher.cc +++ b/eventdispatcher.cc @@ -85,7 +85,10 @@ bool EventDispatcher::edFindAndCall(void* userTag) break; } } + #ifndef WIN32 if (i == receivers.end()) abort(); // should never happen + // but it can happen under windows ... how?? + #endif #ifndef WIN32 pthread_cond_signal(&edr->cond); -- 2.39.5