X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Fplist.tcc;h=ee6889faef313c15d492e52c30c165356df55243;hb=dbe2d4d495590abfa3829f93c99c2ae3a71841f3;hp=5ce6c2446c29b6921036d14e442eaa4b5dccc3db;hpb=8437de9f9840db2227c0142408979c95c3118e5c;p=lilypond.git diff --git a/flower/include/plist.tcc b/flower/include/plist.tcc index 5ce6c2446c..ee6889faef 100644 --- a/flower/include/plist.tcc +++ b/flower/include/plist.tcc @@ -12,9 +12,6 @@ #include "plist.hh" -#define POINTERLIST_INSTANTIATE(a) class Pointer_list;\ - template class PCursor; - template void Pointer_list::junk() @@ -26,4 +23,20 @@ Pointer_list::junk() } } +#ifndef __CYGWIN32__ // ugh should check for some gcc/egcs version + +#define POINTERLIST_INSTANTIATE(a) template class Pointer_list;\ + template class PCursor; + +#else + +#define POINTERLIST_INSTANTIATE(T)\ + static void force_junk##T ()\ + {\ + Pointer_list bla;\ + bla.junk ();\ + } + +#endif + #endif // PLIST_TCC