From: Brad King Date: Wed, 11 Nov 2009 14:20:44 +0000 (-0500) Subject: Borland does not prefix strdup, setmode, or umask X-Git-Tag: v2.8.0~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a30e831a19c12ae8f4aa85b3198c79b499d80324;p=thirdparty%2Flibarchive.git Borland does not prefix strdup, setmode, or umask Although MSVC and some other Windows compilers provide these functions prefixed with '_', the Borland compiler does not. SVN-Revision: 1646 --- diff --git a/libarchive/archive_windows.h b/libarchive/archive_windows.h index 17fb6f5f4..735e631e6 100644 --- a/libarchive/archive_windows.h +++ b/libarchive/archive_windows.h @@ -112,11 +112,17 @@ #define open __la_open #define read __la_read #define rmdir __la_rmdir +#if !defined(__BORLANDC__) #define setmode _setmode +#endif #define stat(path,stref) __la_stat(path,stref) +#if !defined(__BORLANDC__) #define strdup _strdup +#endif #define tzset _tzset +#if !defined(__BORLANDC__) #define umask _umask +#endif #define unlink __la_unlink #define utimes __la_utimes #define waitpid __la_waitpid