#include "plist.hh"
-#define POINTERLIST_INSTANTIATE(a) class Pointer_list<a*>;\
- template class PCursor<a*>;
-
template<class T>
void
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