rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit 175b8194f06ae32d5204b7d101fccbff2bb78841
parent 110a592258024001074d4e11e4bd357ab9fa9546
Author: vaplv <vincent.forest@meso-star.com>
Date:   Fri,  3 Feb 2017 10:37:09 +0100

Fix a compilation error on CL

Fix the FUNC_NAME macro

Diffstat:
Msrc/rsys.h | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/rsys.h b/src/rsys.h @@ -358,7 +358,11 @@ typedef int res_T; #define OFFSET_PTR(Ptr, Offset) (void*)((uintptr_t)(Ptr) + (Offset)) -#define FUNC_NAME (__extension__ __FUNCTION__) +#ifdef COMPILER_GCC + #define FUNC_NAME (__extension__ __FUNCTION__) +#else + #define __FUNCTION__ +#endif #define MEM_AREA_OVERLAP(A, SzA, B, SzB) \ ((uintptr_t)(A) < (uintptr_t)(B) \