Take advantage of gcc's builtin implementation of ffs under mingw
authorJ. Ali Harlow <ali@juiblex.co.uk>
Thu May 14 05:51:05 2009 +0100 (2009-05-14)
changeset 366f176b2ba3cb3
parent 365 b7e2d327239a
child 367 e45f50e940b6
Take advantage of gcc's builtin implementation of ffs under mingw
librazor/types/types.h
     1.1 --- a/librazor/types/types.h	Thu May 14 05:50:37 2009 +0100
     1.2 +++ b/librazor/types/types.h	Thu May 14 05:51:05 2009 +0100
     1.3 @@ -24,6 +24,10 @@
     1.4  #include <stdlib.h>
     1.5  #include <stdint.h>
     1.6  
     1.7 +#ifdef __MINGW32__
     1.8 +#define ffs __builtin_ffs
     1.9 +#endif
    1.10 +
    1.11  struct array {
    1.12  	void *data;
    1.13  	int size, alloc;