]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/windows/eventreader.cpp
Add move semantics to Variant
[libs/core.git] / source / io / windows / eventreader.cpp
index 4a0640f5395f799fc1aacb992cc107ec20214e54..8f208c20dda864c711ad5584697083c3df9b4ade 100644 (file)
@@ -1,4 +1,4 @@
-#include <windows.h>
+#include <msp/core/winapi.h>
 #include <algorithm>
 #include <msp/core/systemerror.h>
 #include "eventreader.h"
@@ -22,7 +22,7 @@ struct EventReader::Private
 };
 
 
-EventReader::EventReader(Handle &h, unsigned size):
+EventReader::EventReader(Handle &h, size_t size):
        handle(h),
        priv(new Private)
 {
@@ -92,7 +92,7 @@ void EventReader::wait()
        }
 }
 
-unsigned EventReader::read(char *buf, unsigned len)
+unsigned EventReader::read(char *buf, size_t len)
 {
        if(!priv->buf_avail)
        {