Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
5f9b2859
Commit
5f9b2859
authored
May 03, 2002
by
rswindell
Browse files
Changes necessary for bc++/Linux support.
parent
93ca37d2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
src/xpdev/dirwrap.h
src/xpdev/dirwrap.h
+1
-1
src/xpdev/filewrap.c
src/xpdev/filewrap.c
+1
-1
src/xpdev/filewrap.h
src/xpdev/filewrap.h
+5
-2
src/xpdev/genwrap.h
src/xpdev/genwrap.h
+1
-1
No files found.
src/xpdev/dirwrap.h
View file @
5f9b2859
...
...
@@ -155,7 +155,7 @@ extern "C" {
#if defined(_MSC_VER) || defined(__MINGW32__)
#define CHMOD(s,m) _chmod(s,m)
#elif defined(__BORLANDC__)
#elif defined(__BORLANDC__)
&& !defined(__unix__)
#define CHMOD(p,a) _rtl_chmod(p,1,a)
/* _chmod obsolete in 4.x */
#else
#define CHMOD(s,m) chmod(s,m)
...
...
src/xpdev/filewrap.c
View file @
5f9b2859
...
...
@@ -63,7 +63,7 @@ time_t DLLCALL filetime(int fd)
return
(
st
.
st_mtime
);
}
#if defined(__unix__)
#if defined(__unix__)
&& !defined(__BORLANDC__)
/****************************************************************************/
/* Returns the length of the file in 'fd' */
...
...
src/xpdev/filewrap.h
View file @
5f9b2859
...
...
@@ -44,13 +44,16 @@
#include <unistd.h>
/* read, write, close, ftruncate, lseek, etc. */
#endif
#if defined(_WIN32) || defined(__BORLANDC__)
#include <io.h>
#endif
/**********/
/* Macros */
/**********/
#if defined(_WIN32)
#include <io.h>
/* _sopen */
#include <sys/stat.h>
/* S_IREAD */
#include <fcntl.h>
/* O_BINARY */
#include <windows.h>
/* OF_SHARE_ */
...
...
@@ -98,7 +101,7 @@ extern "C" {
DLLEXPORT
int
DLLCALL
unlock
(
int
fd
,
long
pos
,
int
len
);
#endif
#if defined(__unix__)
#if
!defined(__BORLANDC__) &&
defined(__unix__)
DLLEXPORT
int
DLLCALL
sopen
(
char
*
fn
,
int
access
,
int
share
);
DLLEXPORT
long
DLLCALL
filelength
(
int
fd
);
#endif
...
...
src/xpdev/genwrap.h
View file @
5f9b2859
...
...
@@ -117,7 +117,7 @@ extern "C" {
DLLEXPORT
char
*
DLLCALL
strupr
(
char
*
str
);
DLLEXPORT
char
*
DLLCALL
strlwr
(
char
*
str
);
DLLEXPORT
char
*
DLLCALL
strrev
(
char
*
str
);
#if
!defined(__BORLANDC__) &&
!defined(stricmp)
#if !defined(stricmp)
#define stricmp(x,y) strcasecmp(x,y)
#define strnicmp(x,y,z) strncasecmp(x,y,z)
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment