Skip to content

Commit

Permalink
Include config.hh to get needed macros (#426)
Browse files Browse the repository at this point in the history
This includes gz/msgs/config.hh wherever the
GZ_MSGS_VERSION_NAMESPACE macro is used in order
to provide the macro definition.

Part of gazebosim/gz-cmake#412.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters committed Feb 20, 2024
1 parent fbc0480 commit 2effe83
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/include/gz/msgs/convert/AxisAlignedBox.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef GZ_MSGS_CONVERT_AXISALIGNEDBOX_HH_
#define GZ_MSGS_CONVERT_AXISALIGNEDBOX_HH_

#include <gz/msgs/config.hh>
#include <gz/msgs/convert/Vector3.hh>

// Message Headers
Expand Down
2 changes: 2 additions & 0 deletions core/include/gz/msgs/convert/Color.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef GZ_MSGS_CONVERT_COLOR_HH_
#define GZ_MSGS_CONVERT_COLOR_HH_

#include <gz/msgs/config.hh>

// Message Headers
#include "gz/msgs/color.pb.h"

Expand Down
2 changes: 2 additions & 0 deletions core/include/gz/msgs/convert/DiscoveryType.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef GZ_MSGS_CONVERT_DISCOVERYTYPE_HH_
#define GZ_MSGS_CONVERT_DISCOVERYTYPE_HH_

#include <gz/msgs/config.hh>

// Message Headers
#include "gz/msgs/discovery.pb.h"

Expand Down
2 changes: 2 additions & 0 deletions core/include/gz/msgs/convert/FuelMetadata.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef GZ_MSGS_CONVERT_FUELMETADATA_HH_
#define GZ_MSGS_CONVERT_FUELMETADATA_HH_

#include <gz/msgs/config.hh>

// Message Headers
#include "gz/msgs/fuel_metadata.pb.h"

Expand Down
2 changes: 2 additions & 0 deletions core/include/gz/msgs/convert/GeometryType.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef GZ_MSGS_CONVERT_GEOMETRYTYPE_HH_
#define GZ_MSGS_CONVERT_GEOMETRYTYPE_HH_

#include <gz/msgs/config.hh>

// Message Headers
#include "gz/msgs/geometry.pb.h"

Expand Down
1 change: 1 addition & 0 deletions core/include/gz/msgs/convert/Inertial.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef GZ_MSGS_CONVERT_INERTIAL_HH_
#define GZ_MSGS_CONVERT_INERTIAL_HH_

#include <gz/msgs/config.hh>
#include <gz/msgs/convert/Pose.hh>
#include <gz/msgs/convert/Vector3.hh>

Expand Down
2 changes: 2 additions & 0 deletions core/include/gz/msgs/convert/JointType.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef GZ_MSGS_CONVERT_JOINTTYPE_HH_
#define GZ_MSGS_CONVERT_JOINTTYPE_HH_

#include <gz/msgs/config.hh>

// Message Headers
#include "gz/msgs/joint.pb.h"

Expand Down
2 changes: 2 additions & 0 deletions core/include/gz/msgs/convert/PixelFormatType.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef GZ_MSGS_CONVERT_PIXELFORMATTYPE_HH_
#define GZ_MSGS_CONVERT_PIXELFORMATTYPE_HH_

#include <gz/msgs/config.hh>

// Message Headers
#include "gz/msgs/image.pb.h"

Expand Down
1 change: 1 addition & 0 deletions core/include/gz/msgs/convert/Plane.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef GZ_MSGS_CONVERT_PLANE_HH_
#define GZ_MSGS_CONVERT_PLANE_HH_

#include <gz/msgs/config.hh>
#include <gz/msgs/convert/Vector2.hh>
#include <gz/msgs/convert/Vector3.hh>

Expand Down
1 change: 1 addition & 0 deletions core/include/gz/msgs/convert/Pose.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef GZ_MSGS_CONVERT_POSE_HH_
#define GZ_MSGS_CONVERT_POSE_HH_

#include <gz/msgs/config.hh>
#include <gz/msgs/convert/Vector3.hh>
#include <gz/msgs/convert/Quaternion.hh>

Expand Down
2 changes: 2 additions & 0 deletions core/include/gz/msgs/convert/Quaternion.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef GZ_MSGS_CONVERT_QUATERNION_HH_
#define GZ_MSGS_CONVERT_QUATERNION_HH_

#include <gz/msgs/config.hh>

// Message Headers
#include "gz/msgs/quaternion.pb.h"

Expand Down
2 changes: 2 additions & 0 deletions core/include/gz/msgs/convert/ShaderType.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef GZ_MSGS_CONVERT_SHADERTYPE_HH_
#define GZ_MSGS_CONVERT_SHADERTYPE_HH_

#include <gz/msgs/config.hh>

// Message Headers
#include "gz/msgs/material.pb.h"

Expand Down
2 changes: 2 additions & 0 deletions core/include/gz/msgs/convert/SphericalCoordinates.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef GZ_MSGS_CONVERT_SPHERICALCOORDINATES_HH_
#define GZ_MSGS_CONVERT_SPHERICALCOORDINATES_HH_

#include <gz/msgs/config.hh>

// Message Headers
#include "gz/msgs/spherical_coordinates.pb.h"

Expand Down
1 change: 1 addition & 0 deletions core/include/gz/msgs/convert/StdTypes.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#define GZ_MSGS_CONVERT_STDTYPES_HH_

#include <gz/math/Helpers.hh>
#include <gz/msgs/config.hh>

// Message Headers
#include "gz/msgs/boolean.pb.h"
Expand Down
2 changes: 2 additions & 0 deletions core/include/gz/msgs/convert/Vector2.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef GZ_MSGS_CONVERT_VECTOR2_HH_
#define GZ_MSGS_CONVERT_VECTOR2_HH_

#include <gz/msgs/config.hh>

// Message Headers
#include "gz/msgs/vector2d.pb.h"

Expand Down
2 changes: 2 additions & 0 deletions core/include/gz/msgs/convert/Vector3.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#ifndef GZ_MSGS_CONVERT_VECTOR3_HH_
#define GZ_MSGS_CONVERT_VECTOR3_HH_

#include <gz/msgs/config.hh>

// Message Headers
#include "gz/msgs/vector3d.pb.h"

Expand Down
1 change: 1 addition & 0 deletions core/include/gz/msgs/convert/make_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#define GZ_MSGS_CONVERT_{header}_HH_
#include <gz/msgs/Converter.hh>
#include <gz/msgs/config.hh>
// Message Headers
{msg_headers}
Expand Down

0 comments on commit 2effe83

Please sign in to comment.