summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/sleep.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-20 21:24:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-20 23:24:17 +0200
commit88e4563455ca183e1b77364b73d5e6173af513d3 (patch)
treeb63fcee5e953c876886cf6c2bdeaf2738ee0c795 /opentrack-compat/sleep.hpp
parent06b68ac493f06723d123db5fa23b8c0a86ca7f66 (diff)
api, compat: backport exports fix
Diffstat (limited to 'opentrack-compat/sleep.hpp')
-rw-r--r--opentrack-compat/sleep.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/opentrack-compat/sleep.hpp b/opentrack-compat/sleep.hpp
index e7c70285..0a551dcc 100644
--- a/opentrack-compat/sleep.hpp
+++ b/opentrack-compat/sleep.hpp
@@ -5,16 +5,14 @@ namespace portable
#ifdef _WIN32
# include <windows.h>
- template<typename = void>
- void sleep(unsigned milliseconds)
+ inline void sleep(unsigned milliseconds)
{
Sleep(milliseconds);
}
#else
#include <unistd.h>
- template<typename = void>
- void sleep(unsigned milliseconds)
+ inline void sleep(unsigned milliseconds)
{
usleep(milliseconds * 1000U); // takes microseconds
}