-/* for compatibility only, don't use any more, not needed */
-#define wxCOMPILE_TIME_ASSERT2(expr, msg, text) wxCOMPILE_TIME_ASSERT(expr, msg)
+#ifdef __WATCOMC__
+ /* avoid "unused symbol" warning */
+ #define wxCOMPILE_TIME_ASSERT2(expr, msg, text) \
+ class wxMAKE_UNIQUE_ASSERT_NAME2(text) { \
+ unsigned int msg: expr; \
+ wxMAKE_UNIQUE_ASSERT_NAME2(text) { wxUnusedVar(msg); } \
+ }
+#else
+ #define wxCOMPILE_TIME_ASSERT2(expr, msg, text) \
+ struct wxMAKE_UNIQUE_ASSERT_NAME2(text) { unsigned int msg: expr; }
+#endif