X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77e7a1dc48e084d1abbc06d5ab9e463d09f9ff51..6f34921d9369a31de14e4b07e4824e2d701710f0:/src/common/dynlib.cpp diff --git a/src/common/dynlib.cpp b/src/common/dynlib.cpp index 6a49d9bc3a..db17f823d4 100644 --- a/src/common/dynlib.cpp +++ b/src/common/dynlib.cpp @@ -22,7 +22,7 @@ // System dependent include // --------------------------------------------------------------------------- -#if defined(__LINUX__) || defined(__SGI__) +#ifdef __UNIX__ #include #endif @@ -63,7 +63,7 @@ wxLibrary::~wxLibrary() else delete m_liblist; -#if defined(__LINUX__) || defined(__SGI__) +#ifdef __UNIX__ dlclose(m_handle); #endif #ifdef __WINDOWS__ @@ -79,7 +79,7 @@ wxObject *wxLibrary::CreateObject(const wxString& name) void *wxLibrary::GetSymbol(const wxString& symbname) { -#if defined(__LINUX__) || defined(__SGI__) +#ifdef __UNIX__ return dlsym(m_handle, WXSTRINGCAST symbname); #endif #ifdef __WINDOWS__ @@ -117,8 +117,8 @@ wxLibrary *wxLibraries::LoadLibrary(const wxString& name) if ( (node = m_loaded.Find(name.GetData())) ) return ((wxLibrary *)node->Data()); -#if defined(__LINUX__) || defined(__SGI__) - lib_name.Prepend("lib"); +#ifdef __UNIX__ + lib_name.Prepend("./lib"); lib_name += ".so"; printf("lib_name = %s\n", WXSTRINGCAST lib_name); @@ -166,7 +166,7 @@ wxClassLibrary::wxClassLibrary(void) wxClassLibrary::~wxClassLibrary(void) { - uint i; + size_t i; for (i=0;iclass_info == class_info) { @@ -200,7 +200,7 @@ bool wxClassLibrary::CreateObjects(const wxString& path, wxArrayClassInfo& objs) { wxClassLibInfo *info; - uint i = 0; + size_t i = 0; while (i < m_list.Count()) { info = m_list[i]; @@ -215,7 +215,7 @@ bool wxClassLibrary::FetchInfos(const wxString& path, wxArrayClassLibInfo& infos) { wxClassLibInfo *info; - uint i = 0; + size_t i = 0; while (i < m_list.Count()) { info = m_list[i]; @@ -232,7 +232,7 @@ bool wxClassLibrary::FetchInfos(const wxString& path, wxObject *wxClassLibrary::CreateObject(const wxString& path) { wxClassLibInfo *info; - uint i = 0; + size_t i = 0; while (i < m_list.Count()) { info = m_list[i];