From a44a4d32ff12bf6826be528eca13259d839b78d6 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 14 Jun 2013 10:12:50 -0700 Subject: Add __CLC_ prefix to all macro definitions in headers libclc was defining and undefing GENTYPE and several other macros with common names in its header files. This was preventing applications from defining macros with identical names as command line arguments to the compiler, because the definitions in the header files were masking the macros defined as compiler arguements. Reviewed-by: Aaron Watry --- generic/lib/integer/abs.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'generic/lib/integer/abs.inc') diff --git a/generic/lib/integer/abs.inc b/generic/lib/integer/abs.inc index fff6691..cfe7bfe 100644 --- a/generic/lib/integer/abs.inc +++ b/generic/lib/integer/abs.inc @@ -1,3 +1,3 @@ -_CLC_OVERLOAD _CLC_DEF UGENTYPE abs(GENTYPE x) { - return __builtin_astype((GENTYPE)(x > (GENTYPE)(0) ? x : -x), UGENTYPE); +_CLC_OVERLOAD _CLC_DEF __CLC_U_GENTYPE abs(__CLC_GENTYPE x) { + return __builtin_astype((__CLC_GENTYPE)(x > (__CLC_GENTYPE)(0) ? x : -x), __CLC_U_GENTYPE); } -- cgit v1.2.3