include/zephyr.h: Define __ZEPHYR__ if not already.
__ZEPHYR__ preprocessor macro is a way for a (cross-platform) application to test if it's built for Zephyr. Currently it's defined by Makefile, so if an app uses it's own build system, it won't be available. So, define it in the standard header too to cover such a case. Change-Id: Id708d1f20fe3b415968ad8475da449f54ad3c3fb Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
c76c050bbd
commit
0c6df2d55c
1 changed files with 8 additions and 0 deletions
|
@ -7,6 +7,14 @@
|
|||
#ifndef _ZEPHYR__H
|
||||
#define _ZEPHYR__H
|
||||
|
||||
/*
|
||||
* Applications can identify whether they are built for Zephyr by
|
||||
* macro below. (It may be already defined by a makefile or toolchain.)
|
||||
*/
|
||||
#ifndef __ZEPHYR__
|
||||
#define __ZEPHYR__
|
||||
#endif
|
||||
|
||||
#include <kernel.h>
|
||||
|
||||
#ifdef CONFIG_MDEF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue