summaryrefslogtreecommitdiff
path: root/basic/source/runtime/methods.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r--basic/source/runtime/methods.cxx19
1 files changed, 6 insertions, 13 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 4167152bc299..549c56168262 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -79,6 +79,7 @@ using namespace com::sun::star::uno;
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
+#include <errno.h>
SbxVariable* getDefaultProp( SbxVariable* pRef );
@@ -86,11 +87,6 @@ SbxVariable* getDefaultProp( SbxVariable* pRef );
#include <direct.h> // _getdcwd get current work directory, _chdrive
#endif
-#ifdef UNX
-#include <errno.h>
-#include <unistd.h>
-#endif
-
#include <basic/sbobjmod.hxx>
#ifdef WNT
@@ -399,11 +395,6 @@ RTLFUNC(ChrW)
implChr( rPar, bChrW );
}
-
-#ifdef UNX
-#define _PATH_INCR 250
-#endif
-
RTLFUNC(CurDir)
{
(void)pBasic;
@@ -449,9 +440,11 @@ RTLFUNC(CurDir)
}
delete [] pBuffer;
-#elif defined( UNX )
+#else
+
+ const int PATH_INCR = 250;
- int nSize = _PATH_INCR;
+ int nSize = PATH_INCR;
char* pMem;
while( true )
{
@@ -474,7 +467,7 @@ RTLFUNC(CurDir)
return;
}
delete [] pMem;
- nSize += _PATH_INCR;
+ nSize += PATH_INCR;
};
#endif