mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-24 00:44:33 +08:00
Add include guard checks to kernel space headers
This commit is contained in:
@@ -36,6 +36,10 @@
|
||||
#include <sys/time.h>
|
||||
#include <sys/priority.h>
|
||||
|
||||
#if !defined(_SYS_PARAM_H_) || !defined(_KERNEL)
|
||||
#error "must be included via <sys/param.h> in kernel space"
|
||||
#endif
|
||||
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user