Skip to content

Commit

Permalink
core: remove ending parenthesis in ifdef condition
Browse files Browse the repository at this point in the history
warning: ISO C99 requires whitespace after the macro name
sched_yield.h:34:20: warning: extra tokens at end of #ifndef directive
 #ifndef sched_yield()

- reported by Victore Seva, GH #576

(cherry picked from commit 34b6712)
(cherry picked from commit 71f329c)
(cherry picked from commit 0e41c6c)
  • Loading branch information
miconda committed Jul 4, 2016
1 parent d5195cd commit 6fc48dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sched_yield.h
Expand Up @@ -35,7 +35,7 @@
#else
#include <unistd.h>
/* fake sched_yield */
#ifndef sched_yield()
#ifndef sched_yield
#define sched_yield() sleep(0)
#endif
#endif
Expand Down

0 comments on commit 6fc48dc

Please sign in to comment.