From 4b5aef7ee44ba619638943995e3db01d49e1b908 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 1 Jun 2017 15:01:49 +0300 Subject: [PATCH] shell: Add define to _SHELL_H_ This prevents the header to be included multiple times. Signed-off-by: Luiz Augusto von Dentz --- include/shell/shell.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/shell/shell.h b/include/shell/shell.h index eee80dda4e5..ea982df74cf 100644 --- a/include/shell/shell.h +++ b/include/shell/shell.h @@ -6,6 +6,9 @@ * SPDX-License-Identifier: Apache-2.0 */ +#ifndef _SHELL_H_ +#define _SHELL_H_ + #ifdef __cplusplus extern "C" { #endif @@ -156,3 +159,4 @@ static inline int shell_run(struct device *dev) } #endif +#endif /* _SHELL_H_ */