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
+5 -3
View File
@@ -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
*/