X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgdb.cc;h=d01961985252681729911af9c1f5e956183c507e;hb=3ea291c21ce16aeaf00b6a6f500bf0a3a9b790d9;hp=e8f71657e4418ad57a121da57f960ab34d9100f2;hpb=fc3e875d6bf06f0680e897faffdcab36ad975a03;p=lilypond.git diff --git a/lily/gdb.cc b/lily/gdb.cc index e8f71657e4..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); + } }