Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
1c21b1cd
Commit
1c21b1cd
authored
Sep 17, 2013
by
Guillaume Roguez
Browse files
#29579: sleep_for() issue is for GCC < 4.8.1, not 4.1
parent
475b8e52
Changes
1
Show whitespace changes
Inline
Side-by-side
daemon/src/video/video_base.h
View file @
1c21b1cd
...
...
@@ -40,8 +40,11 @@
#include
<set>
#include
<mutex>
// std::this_thread::sleep_for is by default supported since 4.1
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
// std::this_thread::sleep_for is by default supported since 4.8.1
#define GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)
#if GCC_VERSION >= 40801
#include
<chrono>
#include
<thread>
#define MYSLEEP(x) std::this_thread::sleep_for(std::chrono::seconds(x))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment