24 #ifdef PLATFORM_WINDOWS
30 #include <glibmm/thread.h>
38 #ifdef PLATFORM_WINDOWS
48 static bool libpbd_initialized =
false;
58 options = Glib::getenv (
"PBD_DEBUG", set);
60 std::cerr <<
"PBD_DEBUG=" << options << std::endl;
68 if (libpbd_initialized) {
72 #ifdef PLATFORM_WINDOWS
82 if (WSAStartup(MAKEWORD(1,1),&wsaData) != 0) {
83 fatal <<
"Windows socket initialization failed with error: " << WSAGetLastError() <<
endmsg;
90 if (!Glib::thread_supported()) {
102 libpbd_initialized =
true;
109 #ifdef PLATFORM_WINDOWS
113 EnumWriter::destroy ();
LIBPBD_API Transmitter fatal
std::ostream & endmsg(std::ostream &ostr)
void setup_libpbd_enums()
void set_debug_options_from_env()
LIBPBD_API void cleanup()
LIBARDOUR_API bool init(bool with_vst, bool try_optimization, const char *localedir)
LIBPBD_API int parse_debug_options(const char *str)