aboutsummaryrefslogtreecommitdiff
path: root/src/platforms/px4_publisher.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/platforms/px4_publisher.h')
-rw-r--r--src/platforms/px4_publisher.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platforms/px4_publisher.h b/src/platforms/px4_publisher.h
index 6b6d8e39e..c6f3d6108 100644
--- a/src/platforms/px4_publisher.h
+++ b/src/platforms/px4_publisher.h
@@ -37,7 +37,7 @@
* PX4 Middleware Wrapper Node Handle
*/
#pragma once
-#if defined(__linux) || (defined(__APPLE__) && defined(__MACH__))
+#if defined(__PX4_ROS)
/* includes when building for ros */
#include "ros/ros.h"
#else
@@ -60,7 +60,7 @@ public:
};
-#if defined(__linux) || (defined(__APPLE__) && defined(__MACH__))
+#if defined(__PX4_ROS)
class Publisher :
public PublisherBase
{