Commit bb29a8e2 authored by Joseph Noir's avatar Joseph Noir

Exclude gcc specific hacks

These functions are implemented in the RIOT specific part
of the thread header.
parent 412ecadd
......@@ -31,7 +31,7 @@
#include "caf/thread.hpp"
// GCC hack
#if defined(CAF_GCC) && !defined(_GLIBCXX_USE_SCHED_YIELD)
#if defined(CAF_GCC) && !defined(_GLIBCXX_USE_SCHED_YIELD) && !defined(__RIOTBUILD_FLAG)
#include <time.h>
namespace std {
namespace this_thread {
......@@ -48,7 +48,7 @@ inline void yield() noexcept {
#endif
// another GCC hack
#if defined(CAF_GCC) && !defined(_GLIBCXX_USE_NANOSLEEP)
#if defined(CAF_GCC) && !defined(_GLIBCXX_USE_NANOSLEEP) && !defined(__RIOTBUILD_FLAG)
#include <time.h>
namespace std {
namespace this_thread {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment