Skip to content
Permalink
Browse files

Includes: #ifdef CONFIG_USE_SWITCH instead of #if to avoid undef warning

Hitting wundef in kernel_structs.h, switching to match other instances
where #ifdef is used instead of #if

Signed-off-by: Nicholas Lowell <nlowell@lexmark.com>
  • Loading branch information...
nslowell authored and nashif committed Jul 12, 2019
1 parent 50b78f0 commit f9ae2d8e64d5ff96007634e0d555a961f339c8e2
Showing with 1 addition and 1 deletion.
  1. +1 −1 kernel/include/kernel_structs.h
@@ -185,7 +185,7 @@ extern struct z_kernel _kernel;

#include <kernel_arch_func.h>

#if CONFIG_USE_SWITCH
#ifdef CONFIG_USE_SWITCH
/* This is a arch function traditionally, but when the switch-based
* z_swap() is in use it's a simple inline provided by the kernel.
*/

0 comments on commit f9ae2d8

Please sign in to comment.
You can’t perform that action at this time.