// System dependent include
// ---------------------------------------------------------------------------
-#ifdef linux
+#ifdef __UNIX__
#include <dlfcn.h>
#endif
else
delete m_liblist;
-#ifdef linux
+#ifdef __UNIX__
dlclose(m_handle);
#endif
#ifdef __WINDOWS__
void *wxLibrary::GetSymbol(const wxString& symbname)
{
-#ifdef linux
+#ifdef __UNIX__
return dlsym(m_handle, WXSTRINGCAST symbname);
#endif
#ifdef __WINDOWS__
if ( (node = m_loaded.Find(name.GetData())) )
return ((wxLibrary *)node->Data());
-#ifdef linux
- lib_name.Prepend("lib");
+#ifdef __UNIX__
+ lib_name.Prepend("./lib");
lib_name += ".so";
printf("lib_name = %s\n", WXSTRINGCAST lib_name);
wxClassLibrary::~wxClassLibrary(void)
{
- uint i;
+ size_t i;
for (i=0;i<m_list.Count();i++)
delete (m_list[i]);
void wxClassLibrary::UnregisterClass(wxClassInfo *class_info)
{
- uint i = 0;
+ size_t i = 0;
while (i < m_list.Count()) {
if (m_list[i]->class_info == class_info) {
wxArrayClassInfo& objs)
{
wxClassLibInfo *info;
- uint i = 0;
+ size_t i = 0;
while (i < m_list.Count()) {
info = m_list[i];
wxArrayClassLibInfo& infos)
{
wxClassLibInfo *info;
- uint i = 0;
+ size_t i = 0;
while (i < m_list.Count()) {
info = m_list[i];
wxObject *wxClassLibrary::CreateObject(const wxString& path)
{
wxClassLibInfo *info;
- uint i = 0;
+ size_t i = 0;
while (i < m_list.Count()) {
info = m_list[i];