diff options
Diffstat (limited to 'src/examples/publisher/publisher_main.cpp')
-rw-r--r-- | src/examples/publisher/publisher_main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/examples/publisher/publisher_main.cpp b/src/examples/publisher/publisher_main.cpp index c4e79aaa6..8b692d963 100644 --- a/src/examples/publisher/publisher_main.cpp +++ b/src/examples/publisher/publisher_main.cpp @@ -51,6 +51,7 @@ using namespace px4; PX4_MAIN_FUNCTION(publisher); +#if !defined(__linux) && !(defined(__APPLE__) && defined(__MACH__)) extern "C" __EXPORT int publisher_main(int argc, char *argv[]) { px4::init(argc, argv, "publisher"); @@ -98,15 +99,16 @@ extern "C" __EXPORT int publisher_main(int argc, char *argv[]) warnx("unrecognized command"); return 1; } +#endif PX4_MAIN_FUNCTION(publisher) { - warnx("starting"); + PX4_INFO("starting"); PublisherExample p; thread_running = true; p.main(); - warnx("exiting."); + PX4_INFO("exiting."); thread_running = false; return 0; } |