Skip to content

Commit

Permalink
Removed __BORLANDC__ checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 6, 2024
1 parent ba7429d commit eef9934
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 22 deletions.
2 changes: 1 addition & 1 deletion magick/method-attribute.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
extern "C" {
#endif

#if defined(__BORLANDC__) && defined(_DLL)
#if defined(_DLL)
# define _MAGICKDLL_
# define _MAGICKLIB_
# define MAGICKCORE_MODULES_SUPPORT
Expand Down
2 changes: 1 addition & 1 deletion magick/nt-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2621,7 +2621,7 @@ MagickPrivate void NTWindowsGenesis(void)
(void) SetErrorMode(StringToInteger(mode));
mode=DestroyString(mode);
}
#if defined(_DEBUG) && !defined(__BORLANDC__) && !defined(__MINGW32__)
#if defined(_DEBUG) && !defined(__MINGW32__)
if (IsEventLogging() != MagickFalse)
{
int
Expand Down
23 changes: 4 additions & 19 deletions magick/nt-base.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ extern "C" {
#endif

#if !defined(chsize)
# if defined(__BORLANDC__)
# define chsize(file,length) chsize(file,length)
# else
# define chsize(file,length) _chsize(file,length)
# endif
# define chsize(file,length) _chsize(file,length)
#endif

#if !defined(access)
Expand Down Expand Up @@ -106,7 +102,7 @@ extern "C" {
# define fseek _fseeki64
#endif
#endif
#if !defined(fstat) && !defined(__BORLANDC__)
#if !defined(fstat)
#if defined(MAGICKCORE_WINDOWS_SUPPORT) && \
!(defined(_MSC_VER) && (_MSC_VER < 1400)) && \
!(defined(__MSVCRT_VERSION__) && (__MSVCRT_VERSION__ < 0x800))
Expand Down Expand Up @@ -224,7 +220,7 @@ extern "C" {
#if !defined(strtod_l)
#define strtod_l _strtod_l
#endif
#if !defined(stat) && !defined(__BORLANDC__)
#if !defined(stat)
#if defined(MAGICKCORE_WINDOWS_SUPPORT) && \
!(defined(_MSC_VER) && (_MSC_VER < 1400)) && \
!(defined(__MSVCRT_VERSION__) && (__MSVCRT_VERSION__ < 0x800))
Expand Down Expand Up @@ -282,7 +278,7 @@ extern "C" {
#if !defined(write)
# define write(fd,buffer,count) _write(fd,buffer,(unsigned int) count)
#endif
#if !defined(wstat) && !defined(__BORLANDC__)
#if !defined(wstat)
#if defined(MAGICKCORE_WINDOWS_SUPPORT) && \
!(defined(_MSC_VER) && (_MSC_VER < 1400)) && \
!(defined(__MSVCRT_VERSION__) && (__MSVCRT_VERSION__ < 0x800))
Expand All @@ -292,17 +288,6 @@ extern "C" {
#endif
#endif

#if defined(__BORLANDC__)
#undef _O_RANDOM
#define _O_RANDOM 0
#undef _O_SEQUENTIAL
#define _O_SEQUENTIAL 0
#undef _O_SHORT_LIVED
#define _O_SHORT_LIVED 0
#undef _O_TEMPORARY
#define _O_TEMPORARY 0
#endif

#undef gettimeofday

typedef struct _GhostInfo
Expand Down
2 changes: 1 addition & 1 deletion wand/method-attribute.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
extern "C" {
#endif

#if defined(__BORLANDC__) && defined(_DLL)
#if defined(_DLL)
# define _MAGICKDLL_
# define _MAGICKLIB_
# define MAGICKCORE_MODULES_SUPPORT
Expand Down

0 comments on commit eef9934

Please sign in to comment.