# HG changeset patch # User J. Ali Harlow # Date 1242276665 -3600 # Node ID f176b2ba3cb3ab6c1351590512ef5a62862b3e7b # Parent b7e2d327239af15a94456d27f4c74c3c4827df1b Take advantage of gcc's builtin implementation of ffs under mingw diff -r b7e2d327239a -r f176b2ba3cb3 librazor/types/types.h --- a/librazor/types/types.h Thu May 14 05:50:37 2009 +0100 +++ b/librazor/types/types.h Thu May 14 05:51:05 2009 +0100 @@ -24,6 +24,10 @@ #include #include +#ifdef __MINGW32__ +#define ffs __builtin_ffs +#endif + struct array { void *data; int size, alloc;