Fixed DEPRECATED error in UTimer

This commit is contained in:
Mathieu Labbe
2015-04-01 17:59:45 -04:00
parent d4d29f9a50
commit 8458b25292
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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