Compile without c++11.
This commit is contained in:
parent
1290326210
commit
eb1d17c3c6
1 changed files with 8 additions and 0 deletions
|
@ -32,12 +32,20 @@ private:
|
||||||
*
|
*
|
||||||
* Maximum period is at least 49 days.
|
* Maximum period is at least 49 days.
|
||||||
*/
|
*/
|
||||||
|
#if __cplusplus>=201103L
|
||||||
using LongTimer = Timer<unsigned long>;
|
using LongTimer = Timer<unsigned long>;
|
||||||
|
#else
|
||||||
|
typedef Timer<unsigned long> LongTimer;
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* @brief Timer unsigned short specialization
|
* @brief Timer unsigned short specialization
|
||||||
*
|
*
|
||||||
* Maximum period is at least 65 seconds.
|
* Maximum period is at least 65 seconds.
|
||||||
*/
|
*/
|
||||||
|
#if __cplusplus>=201103L
|
||||||
using ShortTimer = Timer<unsigned short>;
|
using ShortTimer = Timer<unsigned short>;
|
||||||
|
#else
|
||||||
|
typedef Timer<unsigned short> ShortTimer;
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* TIMER_H */
|
#endif /* TIMER_H */
|
||||||
|
|
Loading…
Reference in a new issue