From b813315c89842dcdf80f944836f7b1e5b10b10cf Mon Sep 17 00:00:00 2001 From: thor Date: Mon, 28 Oct 2024 14:00:22 +0000 Subject: [PATCH] compat: even (theoretically) support Watcom C (patch by manx) git-svn-id: svn://scm.orgis.org/mpg123/trunk@5449 35dc7657-300d-0410-a2e5-dc2837fedb53 --- src/compat/compat.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/compat/compat.h b/src/compat/compat.h index 0657a667..23df921b 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -110,7 +110,7 @@ typedef unsigned char byte; -#if (defined(_UCRT) || defined(_MSC_VER) || (defined(__MINGW32__) || defined(__MINGW64__))) && !defined(__CYGWIN__) +#if (defined(_UCRT) || defined(_MSC_VER) || (defined(__MINGW32__) || defined(__MINGW64__)) || (defined(__WATCOMC__) && defined(__NT__))) && !defined(__CYGWIN__) #define MPG123_COMPAT_MSVCRT_IO #endif @@ -136,6 +136,13 @@ typedef unsigned char byte; #endif #endif #endif +#if defined(__WATCOMC__) && defined(__NT__) +#if (__WATCOMC__ >= 1100) +#ifndef MPG123_COMPAT_MSVCRT_IO_64 +#define MPG123_COMPAT_MSVCRT_IO_64 +#endif +#endif +#endif #endif #if defined(HAVE__SETMODE) || defined(HAVE_SETMODE) || defined(MPG123_COMPAT_MSVCRT_IO)