mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-14 01:10:13 +00:00
Merged in masayuki2009/nuttx.apps/fix_helloxx (pull request #144)
apps/examples/helloxx: Add main() for CONFIG_BUILD_KERNEL Signed-off-by: Masayuki Ishikawa <masayuki.ishikawa@gmail.com> Approved-by: GregoryN <gnutt@nuttx.org>
This commit is contained in:
parent
654ee7e6f9
commit
6b938816d1
1 changed files with 4 additions and 0 deletions
|
|
@ -127,7 +127,11 @@ static CHelloWorld g_HelloWorld;
|
|||
|
||||
extern "C"
|
||||
{
|
||||
#ifdef CONFIG_BUILD_KERNEL
|
||||
int main(int argc, FAR char *argv[])
|
||||
#else
|
||||
int helloxx_main(int argc, char *argv[])
|
||||
#endif
|
||||
{
|
||||
// If C++ initialization for static constructors is supported, then do
|
||||
// that first
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue