Skip to content

Commit

Permalink
Use pragma deprecation instead
Browse files Browse the repository at this point in the history
Signed-off-by: methylDragon <[email protected]>
  • Loading branch information
methylDragon committed May 19, 2022
1 parent b922b10 commit 5e26778
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions include/ignition/utils/config.hh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@

#include <gz/utils/config.hh>

#ifndef IGNITION_UTILS_CONFIG_HH_
#define IGNITION_UTILS_CONFIG_HH_

#define IGNITION_UTILS_MAJOR_VERSION GZ_UTILS_MAJOR_VERSION
#define IGNITION_UTILS_MINOR_VERSION GZ_UTILS_MINOR_VERSION
#define IGNITION_UTILS_PATCH_VERSION GZ_UTILS_PATCH_VERSION
Expand All @@ -34,4 +31,12 @@

#define IGNITION_UTILS_VERSION_HEADER GZ_UTILS_VERSION_HEADER

namespace ignition
{
#ifndef SUPPRESS_IGNITION_HEADER_DEPRECATION
#pragma message("ignition namespace is deprecated! Use gz instead!")
#endif
using namespace gz;
}

#endif

0 comments on commit 5e26778

Please sign in to comment.