Ensure that we define bool before using it for variables

It would have been better to hook into the fragment machinery, but for now do
it directly to make sure the generated code compiles.
This commit is contained in:
Vadim Zeitlin 2016-04-22 01:47:04 +02:00
commit 7f4549a0f3

View file

@ -1247,6 +1247,11 @@ ready:
if (!SwigType_isbuiltin(btype))
return NIL;
// Final complication: define bool if it is used here.
if (Cmp(btype, "bool") == 0) {
Printv(f_wrappers_types, "#include <stdbool.h>\n\n", NIL);
}
}
}
}