-#define _DEFINE_LIST(T, name) \
- void wx##name##Node::DeleteData() \
- { \
- delete (T *)GetData(); \
+#if wxUSE_STL
+
+#undef WX_DEFINE_LIST
+#define WX_DEFINE_LIST(name)
+
+#else // if !wxUSE_STL
+
+#define _DEFINE_LIST(T, name) \
+ void wx##name##Node::DeleteData() \
+ { \
+ delete (T *)GetData(); \