mirror of
https://github.com/espressif/openthread.git
synced 2026-09-24 18:07:36 +00:00
[toolchain] define __COUNTER__ for keil compiler (#3545)
This commit is contained in:
committed by
Jonathan Hui
parent
ac89fd5496
commit
66476070a5
@@ -36,6 +36,13 @@
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
/**
|
||||
* Some compilers such as Keil MDK-ARM does not support __COUNTER__ macro.
|
||||
*/
|
||||
#ifndef __COUNTER__
|
||||
#define __COUNTER__ __LINE__
|
||||
#endif
|
||||
|
||||
namespace ot {
|
||||
|
||||
template <int> struct StaticAssertError;
|
||||
|
||||
Reference in New Issue
Block a user