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:
Masayuki Ishikawa 2018-07-13 11:52:46 +00:00 committed by GregoryN
parent 654ee7e6f9
commit 6b938816d1

View File

@ -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