diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-06 19:45:57 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-06 19:45:57 +0100 |
commit | f37fdd95af06d7b6937cb53d34ea8777342b3aef (patch) | |
tree | 111537db0b95c767e35f5cd8382d8c1954d52f35 /src/platforms/px4_subscriber.h | |
parent | ee561947e9100f64a206216104e3ce83e8a304ca (diff) | |
download | px4-firmware-f37fdd95af06d7b6937cb53d34ea8777342b3aef.tar.gz px4-firmware-f37fdd95af06d7b6937cb53d34ea8777342b3aef.tar.bz2 px4-firmware-f37fdd95af06d7b6937cb53d34ea8777342b3aef.zip |
add and use PX4_ROS preprocessor define
Diffstat (limited to 'src/platforms/px4_subscriber.h')
-rw-r--r-- | src/platforms/px4_subscriber.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/platforms/px4_subscriber.h b/src/platforms/px4_subscriber.h index 4b6d5b58f..107c60189 100644 --- a/src/platforms/px4_subscriber.h +++ b/src/platforms/px4_subscriber.h @@ -36,9 +36,11 @@ * * PX4 Middleware Wrapper Subscriber */ -#include <functional> #pragma once -#if defined(__linux) || (defined(__APPLE__) && defined(__MACH__)) + +#include <functional> + +#if defined(__PX4_ROS) /* includes when building for ros */ #include "ros/ros.h" #else @@ -87,7 +89,7 @@ public: virtual void * get_void_ptr() = 0; }; -#if defined(__linux) || (defined(__APPLE__) && defined(__MACH__)) +#if defined(__PX4_ROS) /** * Subscriber class that is templated with the ros n message type */ |