// ----------------------------------------------------------------------------
// only define this once, when included from datetime.cpp
-#ifdef wxDEFINE_TIME_CONSTANTS
+// TODO: figure out why switching accessibility on causes link errors
+// if don't use this test.
+#if defined(wxDEFINE_TIME_CONSTANTS) || (defined(_MSC_VER) && wxUSE_ACCESSIBILITY)
const long wxDateTime::TIME_T_FACTOR = 1000l;
#endif // wxDEFINE_TIME_CONSTANTS