X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgdb.cc;h=d01961985252681729911af9c1f5e956183c507e;hb=5d84bfad4626892bcffd05adcced53c8a2329047;hp=9404eb1c691a3e30cab41552891ee57ad046b100;hpb=9bc467a994787949def91708bf3bd50d088db982;p=lilypond.git diff --git a/lily/gdb.cc b/lily/gdb.cc index 9404eb1c69..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 (Score_element* g) -{ - return dynamic_cast(g); -} -Spanner* -to_spanner (Score_element*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); + } }