Reorganized stuff to make plog private

This commit is contained in:
Paul-Louis Ageneau
2021-04-13 21:55:09 +02:00
parent 2fd3da482a
commit 4ca78db146
35 changed files with 956 additions and 762 deletions

View File

@ -19,7 +19,7 @@
#include "stream.hpp"
#include "helpers.hpp"
#if _WIN32
#ifdef _WIN32
// taken from https://stackoverflow.com/questions/5801813/c-usleep-is-obsolete-workarounds-for-windows-mingw
#include <windows.h>
@ -35,6 +35,8 @@ void usleep(__int64 usec)
WaitForSingleObject(timer, INFINITE);
CloseHandle(timer);
}
#else
#include <unistd.h>
#endif
void StreamSource::stop() {