From e4dc719a3cac1103a0e9545756217e7f1429ae21 Mon Sep 17 00:00:00 2001 From: mtaylor Date: Wed, 21 Nov 2007 08:31:35 +0000 Subject: [PATCH] Add labs macro git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2876 0192ed92-7a03-0410-a25b-9323aeb14dbd --- ath_hal/ah_os.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ath_hal/ah_os.h b/ath_hal/ah_os.h index 6cefadc..4ebef75 100644 --- a/ath_hal/ah_os.h +++ b/ath_hal/ah_os.h @@ -128,6 +128,10 @@ extern void * __ahdecl ath_hal_memcpy(void *, const void *, size_t); #define abs(_a) __builtin_abs(_a) #endif +#ifndef labs +#define labs(_a) __builtin_labs(_a) +#endif + struct ath_hal; extern u_int32_t __ahdecl ath_hal_getuptime(struct ath_hal *); #define OS_GETUPTIME(_ah) ath_hal_getuptime(_ah) -- 2.35.1