- add workaround for swig undefing bool
authorMichael Schroeder <mls@suse.de>
Thu, 30 Aug 2012 09:52:30 +0000 (11:52 +0200)
committerMichael Schroeder <mls@suse.de>
Thu, 30 Aug 2012 09:55:02 +0000 (11:55 +0200)
bindings/solv.i

index 618401c..c65c96a 100644 (file)
@@ -337,6 +337,11 @@ typedef VALUE AppObjectPtr;
 #include <sys/types.h>
 #include <unistd.h>
 
+/* argh, swig undefs bool for perl */
+#ifndef bool
+typedef int bool;
+#endif
+
 #include "pool.h"
 #include "poolarch.h"
 #include "solver.h"