// System dependent include
// ---------------------------------------------------------------------------
-#ifdef __UNIX__
+#if defined(__UNIX__) || defined(__unix__)
#include <dlfcn.h>
#endif
wxLibrary::~wxLibrary()
{
if (m_handle && m_destroy) {
-#ifdef __UNIX__
+#if defined(__UNIX__) || defined(__unix__)
dlclose(m_handle);
#endif
#ifdef __WINDOWS__
void *wxLibrary::GetSymbol(const wxString& symbname)
{
-#ifdef __UNIX__
+#if defined(__UNIX__) || defined(__unix__)
return dlsym(m_handle, WXSTRINGCAST symbname);
#endif
#ifdef __WINDOWS__
old_sm_first = wxClassInfo::sm_first;
wxClassInfo::sm_first = NULL;
-#if defined(__UNIX__)
+#if defined(__UNIX__) || defined(__unix__)
lib_name.Prepend("./lib");
lib_name += ".so";
while (node) {
obj = ((wxLibrary *)node->Data())->CreateObject(path);
- if (obj)
+ if (obj)
return obj;
node = node->Next();