1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Fix examples so they build on gcc 4.6

This commit is contained in:
Matias Fontanini
2016-02-21 14:59:19 -08:00
parent fa4178de09
commit 8bf0c355f4
2 changed files with 14 additions and 8 deletions

View File

@@ -31,6 +31,9 @@
#define NOMINMAX
#endif // _WIN32
// Fix for gcc 4.6
#define _GLIBCXX_USE_NANOSLEEP
#include <iostream>
#include <chrono>
#include <thread>
@@ -128,7 +131,7 @@ private:
}
sender.send(ip);
// Give him a little time
// Give it a little time
sleep_for(milliseconds(100));
}
running = false;