#include "pbd/windows_mmcss.h"
#endif
-#include "i18n.h"
+#include "pbd/i18n.h"
extern void setup_libpbd_enums ();
static bool libpbd_initialized = false;
-}
-
+static
void
set_debug_options_from_env ()
{
options = Glib::getenv ("PBD_DEBUG", set);
if (set) {
- std::cerr << "PBD_DEBUG=" << options << std::endl;
+ std::cerr << X_("PBD_DEBUG=") << options << std::endl;
PBD::parse_debug_options (options.c_str());
}
}
#ifdef PLATFORM_WINDOWS
+static
void
test_timers_from_env ()
{
options = Glib::getenv ("PBD_TEST_TIMERS", set);
if (set) {
if (!PBD::QPC::check_timer_valid ()) {
- PBD::error << "Windows QPC Timer source not usable." << endmsg;
+ PBD::error << X_("Windows QPC Timer source not usable") << endmsg;
} else {
- PBD::info << "Windows QPC Timer source usable." << endmsg;
+ PBD::info << X_("Windows QPC Timer source usable") << endmsg;
}
}
}
#endif
+} // namespace
+
bool
PBD::init ()
{
/* Initialize windows socket DLL for PBD::CrossThreadChannel
*/
-
+
if (WSAStartup(MAKEWORD(1,1),&wsaData) != 0) {
- fatal << "Windows socket initialization failed with error: " << WSAGetLastError() << endmsg;
- abort();
- /*NOTREACHED*/
+ error << X_("Windows socket initialization failed with error: ") << WSAGetLastError() << endmsg;
return false;
}
+ QPC::initialize();
test_timers_from_env ();
if (!PBD::MMCSS::initialize()) {
- PBD::info << "Unable to initialize MMCSS" << endmsg;
+ PBD::info << X_("Unable to initialize MMCSS") << endmsg;
} else {
- PBD::info << "MMCSS Initialized" << endmsg;
+ PBD::info << X_("MMCSS Initialized") << endmsg;
}
#endif
#ifdef PLATFORM_WINDOWS
PBD::MMCSS::deinitialize ();
WSACleanup();
-#endif
+#endif
EnumWriter::destroy ();
FPU::destroy ();