add and use PX4_ROS preprocessor define

This commit is contained in:
Thomas Gubler
2015-01-06 19:45:57 +01:00
parent ee561947e9
commit f37fdd95af
11 changed files with 18 additions and 15 deletions
+1 -1
View File
@@ -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[])
{
+1 -1
View File
@@ -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[])
{