mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-26 01:00:36 +08:00
add and use PX4_ROS preprocessor define
This commit is contained in:
1 parent
ee561947e9
commit
f37fdd95af
11 files changed
+18
-15
No files matched your search
@@ -51,7 +51,7 @@ using namespace px4;
|
||||
|
||||
PX4_MAIN_FUNCTION(publisher);
|
||||
|
||||
#if !defined(__linux) && !(defined(__APPLE__) && defined(__MACH__))
|
||||
#if !defined(__PX4_ROS)
|
||||
extern "C" __EXPORT int publisher_main(int argc, char *argv[]);
|
||||
int publisher_main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@@ -51,7 +51,7 @@ using namespace px4;
|
||||
|
||||
PX4_MAIN_FUNCTION(subscriber);
|
||||
|
||||
#if !defined(__linux) && !(defined(__APPLE__) && defined(__MACH__))
|
||||
#if !defined(__PX4_ROS)
|
||||
extern "C" __EXPORT int subscriber_main(int argc, char *argv[]);
|
||||
int subscriber_main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user