mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-12 07:19:50 +08:00
replace custom definitions with '__has_include' header check
This commit is contained in:
@@ -64,9 +64,9 @@
|
|||||||
#include "jpeg_decoder.h"
|
#include "jpeg_decoder.h"
|
||||||
#include <std_msgs/msg/string.hpp>
|
#include <std_msgs/msg/string.hpp>
|
||||||
|
|
||||||
#if defined(ROS_JAZZY) || defined(ROS_IRON)
|
#if __has_include(<cv_bridge/cv_bridge.hpp>)
|
||||||
#include <cv_bridge/cv_bridge.hpp>
|
#include <cv_bridge/cv_bridge.hpp>
|
||||||
#else
|
#elif __has_include(<cv_bridge/cv_bridge.h>)
|
||||||
#include <cv_bridge/cv_bridge.h>
|
#include <cv_bridge/cv_bridge.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#if defined(ROS_JAZZY) || defined(ROS_IRON)
|
#if __has_include(<cv_bridge/cv_bridge.hpp>)
|
||||||
#include <cv_bridge/cv_bridge.hpp>
|
#include <cv_bridge/cv_bridge.hpp>
|
||||||
#else
|
#elif __has_include(<cv_bridge/cv_bridge.h>)
|
||||||
#include <cv_bridge/cv_bridge.h>
|
#include <cv_bridge/cv_bridge.h>
|
||||||
#endif
|
#endif
|
||||||
#include <sensor_msgs/image_encodings.hpp>
|
#include <sensor_msgs/image_encodings.hpp>
|
||||||
|
|||||||
Reference in New Issue
Block a user