replace custom definitions with '__has_include' header check

This commit is contained in:
Christian Rauch
2025-09-27 09:14:23 +08:00
committed by obyalian
parent 1104367cda
commit 8254e28a94
2 changed files with 4 additions and 4 deletions
@@ -69,9 +69,9 @@
#include <fcntl.h>
#include <unistd.h>
#if defined(ROS_JAZZY) || defined(ROS_IRON)
#if __has_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>
#endif
+2 -2
View File
@@ -14,9 +14,9 @@
* 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>
#else
#elif __has_include(<cv_bridge/cv_bridge.h>)
#include <cv_bridge/cv_bridge.h>
#endif
#include <sensor_msgs/image_encodings.hpp>