Skip to content

Commit bab3fc9

Browse files
committed
avoid conflicting with gcc using keywork
1 parent 7f01fd5 commit bab3fc9

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

perf_counter.h

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,18 @@ __asm(".global __ensure_systick_wrapper\n\t");
188188
# define CONNECT PERFC_CONNECT
189189
#endif
190190

191-
#ifndef using
192-
# define using perfc_using
193-
#endif
194-
195-
#ifndef with
196-
# define with perfc_with
197-
#endif
198-
199-
#ifndef foreach
200-
# define foreach perfc_foreach
191+
#ifndef __cplusplus
192+
#ifndef using
193+
# define using perfc_using
194+
#endif
195+
196+
#ifndef with
197+
# define with perfc_with
198+
#endif
199+
200+
#ifndef foreach
201+
# define foreach perfc_foreach
202+
#endif
201203
#endif
202204
/*! @} */
203205

0 commit comments

Comments
 (0)