Skip to content

Commit

Permalink
Fixed build on MSVC.
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Pecka <peckama2@fel.cvut.cz>
  • Loading branch information
peci1 committed Aug 13, 2024
1 parent 36a07ad commit d7818c4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions include/gz/math/SphericalCoordinates.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
#include <gz/math/config.hh>
#include <gz/utils/ImplPtr.hh>

// MSVC doesn't like deprecating enum values with function macros
#if _MSC_VER
#define GZ_LOCAL_DEPRECATED
#else
#define GZ_LOCAL_DEPRECATED GZ_DEPRECATED(8)
#endif

namespace gz::math
{
// Inline bracket to help doxygen filtering.
Expand Down Expand Up @@ -66,10 +73,10 @@ namespace gz::math
/// \brief Heading-adjusted tangent plane (X, Y, Z)
/// This has kept a bug for backwards compatibility, use
/// LOCAL_TANGENT for the correct behaviour.
LOCAL GZ_DEPRECATED(8) = 4,
LOCAL GZ_LOCAL_DEPRECATED = 4,

/// \brief Equivalent to LOCAL_TANGENT.
LOCAL2 GZ_DEPRECATED(8) = 5,
LOCAL2 GZ_LOCAL_DEPRECATED = 5,

/// \brief Heading-adjusted tangent plane (X, Y, Z)
LOCAL_TANGENT = 5
Expand Down

0 comments on commit d7818c4

Please sign in to comment.