#include <iostream>
#include <sstream>
-#ifdef WNT
+#ifdef WIN32
#include <windows.h>
#define dlopen LoadLibrary
#define dlclose FreeLibrary
}
}
-#ifndef WNT
+#ifndef WIN32
std::string impl_name = std::string ("lib") + aCompName + std::string("Local.so");
if(sprefix != "")
impl_name = sprefix + std::string("/") + impl_name;
#endif
DEBTRACE("impl_name = " << impl_name);
-#if defined( WNT )
+#if defined( WIN32 )
HMODULE handle;
handle = dlopen( impl_name.c_str() ) ;
#else
#endif
const char * sError;
-#if defined( WNT )
+#if defined( WIN32 )
sError = "Not available here !";
#endif
-#if defined( WNT )
+#if defined( WIN32 )
if (!handle)
#else
sError = dlerror();
void *ihandle, *rhandle, *phandle = NULL, *thandle = NULL;
ihandle = dlsym(handle, "__init");
-#if defined( WNT )
+#if defined( WIN32 )
if (!ihandle)
#else
if (sError = dlerror())
}
rhandle = dlsym(handle, "__run");
-#if defined( WNT )
+#if defined( WIN32 )
if (!rhandle)
#else
if (sError = dlerror())
}
thandle = dlsym(handle, "__terminate");
-#if defined( WNT )
+#if defined( WIN32 )
if (!thandle)
#else
if (sError = dlerror())