mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
Fixed DEPRECATED error in UTimer
This commit is contained in:
@@ -81,7 +81,7 @@ public:
|
|||||||
* @return double the interval in seconds.
|
* @return double the interval in seconds.
|
||||||
* @deprecated use elapsed() instead.
|
* @deprecated use elapsed() instead.
|
||||||
*/
|
*/
|
||||||
DEPRECATED(double getInterval());
|
UTILITE_DEPRECATED(double getInterval());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is used to get the interval of
|
* This method is used to get the interval of
|
||||||
|
|||||||
@@ -34,12 +34,12 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#define DEPRECATED(func) func __attribute__ ((deprecated))
|
#define UTILITE_DEPRECATED(func) func __attribute__ ((deprecated))
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#define DEPRECATED(func) __declspec(deprecated) func
|
#define UTILITE_DEPRECATED(func) __declspec(deprecated) func
|
||||||
#else
|
#else
|
||||||
#pragma message("WARNING: You need to implement DEPRECATED for this compiler")
|
#pragma message("WARNING: You need to implement DEPRECATED for this compiler")
|
||||||
#define DEPRECATED(func) func
|
#define UTILITE_DEPRECATED(func) func
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user