From 2c6baff24800711e61cdbbc43e97bfc270e49419 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 22 May 2016 11:52:12 +0200 Subject: compat/sleep: include headers outside namespace scope --- opentrack-compat/sleep.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/opentrack-compat/sleep.hpp b/opentrack-compat/sleep.hpp index e7c70285..fab27286 100644 --- a/opentrack-compat/sleep.hpp +++ b/opentrack-compat/sleep.hpp @@ -1,20 +1,20 @@ #pragma once -namespace portable -{ #ifdef _WIN32 # include +#else +# include +#endif - template - void sleep(unsigned milliseconds) +namespace portable +{ +#ifdef _WIN32 + inline void sleep(unsigned milliseconds) { Sleep(milliseconds); } #else - #include - - template - void sleep(unsigned milliseconds) + inline void sleep(unsigned milliseconds) { usleep(milliseconds * 1000U); // takes microseconds } -- cgit v1.2.3