diff options
| author | Roland <[email protected]> | 2022-02-01 23:45:52 +0100 |
|---|---|---|
| committer | Roland <[email protected]> | 2022-02-01 23:45:52 +0100 |
| commit | e1f0c484c628fd9f2b66ef517a2fda9ace75dce0 (patch) | |
| tree | fee189435ed947f8a0a3dca71b698c1d69340607 /src/common | |
| parent | ffb257ac17f162bc5a4c26596d7a1e954db98aa5 (diff) | |
Modifications for CCRX toolchain
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_compiler.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/tusb_compiler.h b/src/common/tusb_compiler.h index 38e6a16d0..8f1de7162 100644 --- a/src/common/tusb_compiler.h +++ b/src/common/tusb_compiler.h @@ -75,7 +75,11 @@ * Nth position is the same as the number of arguments * - ##__VA_ARGS__ is used to deal with 0 paramerter (swallows comma) *------------------------------------------------------------------*/ -#define TU_ARGS_NUM(...) _TU_NARG(_0, ##__VA_ARGS__,_RSEQ_N()) +#if !defined(__CCRX__) +#define TU_ARGS_NUM(...) _TU_NARG(_0, ##__VA_ARGS__,_RSEQ_N()) +#else +#define TU_ARGS_NUM(...) _TU_NARG(_0, __VA_ARGS__,_RSEQ_N()) +#endif #define _TU_NARG(...) _GET_NTH_ARG(__VA_ARGS__) #define _GET_NTH_ARG( \ |
