[toolchain] define __COUNTER__ for keil compiler (#3545)

This commit is contained in:
Łukasz Duda
2019-02-01 09:26:33 -08:00
committed by Jonathan Hui
parent ac89fd5496
commit 66476070a5
+7
View File
@@ -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;