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
@ -127,7 +127,11 @@ static CHelloWorld g_HelloWorld;
|
|||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_BUILD_KERNEL
|
||||||
|
int main(int argc, FAR char *argv[])
|
||||||
|
#else
|
||||||
int helloxx_main(int argc, char *argv[])
|
int helloxx_main(int argc, char *argv[])
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
// If C++ initialization for static constructors is supported, then do
|
// If C++ initialization for static constructors is supported, then do
|
||||||
// that first
|
// that first
|
||||||
|
Loading…
Reference in New Issue
Block a user