Add labs macro
authormtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 21 Nov 2007 08:31:35 +0000 (08:31 +0000)
committermtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 21 Nov 2007 08:31:35 +0000 (08:31 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2876 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath_hal/ah_os.h

index 6cefadc6a215259a782e4d9c4be26565eeea4864..4ebef7569dc29581501f94e67225ebc363b83b25 100644 (file)
@@ -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)