mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-16 22:38:41 +08:00
examples/null/null_main.c: Need to include config.h it order know if this is or is not a kernel build
This commit is contained in:
@@ -37,6 +37,8 @@
|
|||||||
* Included Files
|
* Included Files
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Definitions
|
* Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -62,7 +64,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_BUILD_KERNEL
|
#ifdef CONFIG_BUILD_KERNEL
|
||||||
int main(int argc, FAR char *argv[])
|
int main(int argc, char *argv[])
|
||||||
#else
|
#else
|
||||||
int null_main(int argc, char *argv[])
|
int null_main(int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user