Gazebo Transport

API Reference

12.2.2
ignition/transport/Helpers.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2022 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 #include <gz/transport/Helpers.hh>
20 
21 // Avoid using deprecated message send/receive function when possible.
22 #if ZMQ_VERSION > ZMQ_MAKE_VERSION(4, 3, 1)
23  #define IGN_ZMQ_POST_4_3_1 GZ_ZMQ_POST_4_3_1
24 #endif
25 
26 // Avoid using deprecated set function when possible
27 #if CPPZMQ_VERSION >= ZMQ_MAKE_VERSION(4, 7, 0)
28  // Ubuntu Focal (20.04) packages a different "4.7.0"
29  #ifndef UBUNTU_FOCAL
30  #define IGN_CPPZMQ_POST_4_7_0 GZ_CPPZMQ_POST_4_7_0
31  #endif
32 #endif
33 
34 #define ign_strcat gz_strcat
35 #define ign_strcpy gz_strcpy
36 #define ign_sprintf gz_sprintf
37 #define ign_strdup gz_strdup