]> git.vomp.tv Git - vompclient-marten.git/commitdiff
Vista compatibility
authorChris Tallon <chris@vomp.tv>
Mon, 14 Apr 2008 19:54:12 +0000 (19:54 +0000)
committerChris Tallon <chris@vomp.tv>
Mon, 14 Apr 2008 19:54:12 +0000 (19:54 +0000)
event.h
eventdispatcher.cc

diff --git a/event.h b/event.h
index 4b8a2f296044aec4a45e10312c59901f8afca6a8..d118b3829e0b3f2a31cffa032b944b0aee63698a 100644 (file)
--- 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;
index b2aa5fdb284a8c60ca22de0dbf39f01e98f25263..b03f23d86d8d7861912ae51954c34dcba6b4ebe1 100644 (file)
@@ -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);