From 83577b758cd729572964ae48f8d44d1332dce08f Mon Sep 17 00:00:00 2001 From: J. Ali Harlow Date: Thu, 14 May 2009 05:51:05 +0100 Subject: [PATCH] Take advantage of gcc's builtin implementation of ffs under mingw --- librazor/types/types.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/librazor/types/types.h b/librazor/types/types.h index f2a4699..8f8443a 100644 --- a/librazor/types/types.h +++ b/librazor/types/types.h @@ -24,6 +24,10 @@ #include #include +#ifdef __MINGW32__ +#define ffs __builtin_ffs +#endif + struct array { void *data; int size, alloc; -- 1.7.1