From 06298235850b7e576ef77a9a95b521534f18a4d9 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Fri, 14 Jan 2000 22:51:34 +0000 Subject: [PATCH] SN: Disable some features not supported by EMX (#ifndef __EMX__) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/utils.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/os2/utils.cpp b/src/os2/utils.cpp index a5dd628bad..34cb8a977f 100644 --- a/src/os2/utils.cpp +++ b/src/os2/utils.cpp @@ -24,7 +24,11 @@ #include "wx/intl.h" #include +#ifdef __EMX__ +#include +#else #include +#endif #include "wx/log.h" @@ -41,9 +45,11 @@ #define INCL_GPI #include #define PURE_32 +#ifndef __EMX__ #include #include #include +#endif static const wxChar WX_SECTION[] = _T("wxWindows"); static const wxChar eHOSTNAME[] = _T("HostName"); @@ -104,10 +110,12 @@ bool wxGetUserId( , int nType ) { +#ifndef __EMX__ long lrc; // UPM procs return 0 on success lrc = U32ELOCU((unsigned char*)zBuf, (unsigned long *)&nType); if (lrc == 0) return TRUE; +#endif return FALSE; } @@ -624,6 +632,7 @@ wxChar* wxGetUserHome ( wxString sUser1(rUser); wxBuffer = new wxChar[256]; +#ifndef __EMX__ if (sUser1 != _T("")) { wxChar zTmp[64]; @@ -645,6 +654,7 @@ wxChar* wxGetUserHome ( sUser1 = _T(""); } } +#endif if (sUser1 == _T("")) { if ((zHome = wxGetenv(_T("HOME"))) != NULL) -- 2.45.2