git://project.juiblex.co.uk
/
razor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3c27796
)
Take advantage of gcc's builtin implementation of ffs under mingw
author
J. Ali Harlow
<ali@juiblex.co.uk>
Thu, 14 May 2009 04:51:05 +0000 (
05:51
+0100)
committer
J. Ali Harlow
<ali@juiblex.co.uk>
Thu, 14 May 2009 04:51:05 +0000 (
05:51
+0100)
librazor/types/types.h
patch
|
blob
|
history
diff --git
a/librazor/types/types.h
b/librazor/types/types.h
index
f2a4699
..
8f8443a
100644
(file)
--- a/
librazor/types/types.h
+++ b/
librazor/types/types.h
@@
-24,6
+24,10
@@
#include <stdlib.h>
#include <stdint.h>
+#ifdef __MINGW32__
+#define ffs __builtin_ffs
+#endif
+
struct array {
void *data;
int size, alloc;