]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/plist.tcc
release: 0.1.51
[lilypond.git] / flower / include / plist.tcc
index 5ce6c2446c29b6921036d14e442eaa4b5dccc3db..ee6889faef313c15d492e52c30c165356df55243 100644 (file)
@@ -12,9 +12,6 @@
 
 #include "plist.hh"
 
-#define POINTERLIST_INSTANTIATE(a) class Pointer_list<a*>;\
-       template class PCursor<a*>;
-       
 template<class T>
 void
 Pointer_list<T>::junk()
@@ -26,4 +23,20 @@ Pointer_list<T>::junk()
     }
 }
 
+#ifndef __CYGWIN32__ // ugh should check for some gcc/egcs version
+
+#define POINTERLIST_INSTANTIATE(a) template class Pointer_list<a*>;\
+       template class PCursor<a*>;
+
+#else
+
+#define POINTERLIST_INSTANTIATE(T)\
+    static void force_junk##T ()\
+    {\
+    Pointer_list<T*> bla;\
+    bla.junk ();\
+    }
+
+#endif
+
 #endif // PLIST_TCC