From c822ad5a5e30a21ca3340af644bf79804cf7c777 Mon Sep 17 00:00:00 2001
From: Stefan Neis <Stefan.Neis@t-online.de>
Date: Sun, 17 Feb 2002 01:04:06 +0000
Subject: [PATCH] Fixed OS/2 compilation problems.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 src/common/dynload.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/common/dynload.cpp b/src/common/dynload.cpp
index 91cb64d3eb..c88597a1b9 100644
--- a/src/common/dynload.cpp
+++ b/src/common/dynload.cpp
@@ -113,7 +113,7 @@ bool wxDynamicLibrary::Load(wxString libname, int flags)
 
 #elif defined(__WXPM__) || defined(__EMX__)
     char    err[256] = "";
-    DosLoadModule(err, sizeof(err), libname.c_str(), &m_handle)
+    DosLoadModule(err, sizeof(err), libname.c_str(), &m_handle);
 
 #elif defined(HAVE_DLOPEN)
 
@@ -183,7 +183,7 @@ bool wxDynamicLibrary::Load(wxString libname, int flags)
     if ( m_handle == 0 )
     {
         wxString msg(_("Failed to load shared library '%s'"));
-#ifdef HAVE_DLERROR
+#if defined(HAVE_DLERROR) && !defined(__EMX__)
         const wxChar  *err = dlerror();
         if( err )
             wxLogError( msg, err );
@@ -261,7 +261,7 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const
     if ( !symbol )
     {
         wxString msg(_("wxDynamicLibrary failed to GetSymbol '%s'"));
-#ifdef HAVE_DLERROR
+#if defined(HAVE_DLERROR) && !defined(__EMX__)
         const wxChar *err = dlerror();
         if( err )
         {
-- 
2.47.2