git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31502
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#endif
// for Unix it is in src/unix/dlunix.cpp
#endif
// for Unix it is in src/unix/dlunix.cpp
+#if !defined(__UNIX__) || defined(__EMX__)
wxDllType wxDynamicLibrary::GetProgramHandle()
{
wxDllType wxDynamicLibrary::GetProgramHandle()
{
// for MSW and Unix this is implemented in the platform-specific file
//
// TODO: move the rest to os2/dlpm.cpp and mac/dlmac.cpp!
// for MSW and Unix this is implemented in the platform-specific file
//
// TODO: move the rest to os2/dlpm.cpp and mac/dlmac.cpp!
-#if !defined(__WXMSW__) && !defined(__UNIX__)
+#if (!defined(__WXMSW__) && !defined(__UNIX__)) || defined(__EMX__)
/* static */
void wxDynamicLibrary::Unload(wxDllType handle)
/* static */
void wxDynamicLibrary::Unload(wxDllType handle)
wxString nameCanonic;
// under Unix the library names usually start with "lib" prefix, add it
wxString nameCanonic;
// under Unix the library names usually start with "lib" prefix, add it
+#if defined(__UNIX__) && !defined(__EMX__)
switch ( cat )
{
default:
switch ( cat )
{
default:
suffix = wxString(_T("_")) + suffix;
#define WXSTRINGIZE(x) #x
suffix = wxString(_T("_")) + suffix;
#define WXSTRINGIZE(x) #x
+#if defined(__UNIX__) && !defined(__EMX__)
#if (wxMINOR_VERSION % 2) == 0
#define wxDLLVER(x,y,z) "-" WXSTRINGIZE(x) "." WXSTRINGIZE(y)
#else
#if (wxMINOR_VERSION % 2) == 0
#define wxDLLVER(x,y,z) "-" WXSTRINGIZE(x) "." WXSTRINGIZE(y)
#else