Mercurial > hg > vamp-plugin-sdk
diff vamp-sdk/RealTime.h @ 80:e33fa45f0935
* avoid trying to use timeval if building on Windows
author | cannam |
---|---|
date | Tue, 18 Sep 2007 09:39:58 +0000 |
parents | 6683f99107cf |
children | fe31e6aed666 |
line wrap: on
line diff
--- a/vamp-sdk/RealTime.h Thu Sep 06 16:49:50 2007 +0000 +++ b/vamp-sdk/RealTime.h Tue Sep 18 09:39:58 2007 +0000 @@ -47,7 +47,9 @@ #include <iostream> #include <string> +#ifndef _WIN32 struct timeval; +#endif namespace Vamp { @@ -74,7 +76,10 @@ static RealTime fromSeconds(double sec); static RealTime fromMilliseconds(int msec); + +#ifndef _WIN32 static RealTime fromTimeval(const struct timeval &); +#endif RealTime &operator=(const RealTime &r) { sec = r.sec; nsec = r.nsec; return *this;