From f9ae2d8e64d5ff96007634e0d555a961f339c8e2 Mon Sep 17 00:00:00 2001 From: Nicholas Lowell Date: Fri, 12 Jul 2019 11:37:39 -0400 Subject: [PATCH] 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 --- kernel/include/kernel_structs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/include/kernel_structs.h b/kernel/include/kernel_structs.h index bb44c3b4dfb..78a722d36ba 100644 --- a/kernel/include/kernel_structs.h +++ b/kernel/include/kernel_structs.h @@ -185,7 +185,7 @@ extern struct z_kernel _kernel; #include -#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. */