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>
This commit is contained in:
Nicholas Lowell 2019-07-12 11:37:39 -04:00 committed by Anas Nashif
commit f9ae2d8e64

View file

@ -185,7 +185,7 @@ extern struct z_kernel _kernel;
#include <kernel_arch_func.h> #include <kernel_arch_func.h>
#if CONFIG_USE_SWITCH #ifdef CONFIG_USE_SWITCH
/* This is a arch function traditionally, but when the switch-based /* 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. * z_swap() is in use it's a simple inline provided by the kernel.
*/ */