X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgdb.cc;h=d01961985252681729911af9c1f5e956183c507e;hb=97a0169312a260933246ab224e4f8b0969871dd5;hp=3c1700b863bef3962a0691d13d88e9c8b96ba5e2;hpb=df4a7c4a55148e065d878dcc2f7e09ac27ea9c32;p=lilypond.git diff --git a/lily/gdb.cc b/lily/gdb.cc index 3c1700b863..d019619852 100644 --- a/lily/gdb.cc +++ b/lily/gdb.cc @@ -1,14 +1,22 @@ -#include "item.hh" #include "spanner.hh" +#include "paper-column.hh" -// thanks to GDBs wonderful casting abilities, we need these: -Item* -to_item (Grob* g) -{ - return dynamic_cast(g); -} -Spanner* -to_spanner (Grob*g) -{ - return dynamic_cast(g); +extern "C" { + // thanks to GDBs wonderful casting abilities, we need these: + Item * + to_item (Grob *g) + { + return dynamic_cast (g); + } + Spanner * + to_spanner (Grob *g) + { + return dynamic_cast (g); + } + + Paper_column * + to_pc (Grob *g) + { + return dynamic_cast (g); + } }