diff options
Diffstat (limited to 'apps/examples/nxhello')
-rw-r--r-- | apps/examples/nxhello/nxhello_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/nxhello/nxhello_main.c b/apps/examples/nxhello/nxhello_main.c index 23288da7d..25e465e5a 100644 --- a/apps/examples/nxhello/nxhello_main.c +++ b/apps/examples/nxhello/nxhello_main.c @@ -206,7 +206,11 @@ static inline int nxhello_initialize(void) * Name: nxhello_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int nxhello_main(int argc, char *argv[]) +#endif { nxgl_mxpixel_t color; int ret; |