-#ifdef __WXMSW__
- // this writes a root entry to the registry in HKCR.ext
- return m_impl->GetOrAllocateFileTypeFromExtension(ext);
-#else // !__WXMSW__
- // VZ: "static const"??? (FIXME)
- // just make a dummy entry with no writing to file
- static const wxFileTypeInfo fallback[] =
- {
- wxFileTypeInfo("application/x-" + ext,
- "",
- "",
- ext + " format file",
- ext, NULL),
- // must terminate the table with this!
- wxFileTypeInfo()
- };
-
- AddFallbacks (fallback);
- return m_impl->GetFileTypeFromExtension(ext);
-#endif // __WXMSW__/!__WXMSW__