Take advantage of gcc's builtin implementation of ffs under mingw
authorJ. Ali Harlow <ali@juiblex.co.uk>
Thu, 14 May 2009 04:51:05 +0000 (05:51 +0100)
committerJ. Ali Harlow <ali@juiblex.co.uk>
Thu, 14 May 2009 04:51:05 +0000 (05:51 +0100)
librazor/types/types.h

index f2a4699..8f8443a 100644 (file)
 #include <stdlib.h>
 #include <stdint.h>
 
+#ifdef __MINGW32__
+#define ffs __builtin_ffs
+#endif
+
 struct array {
        void *data;
        int size, alloc;