From: <sv...@op...> - 2024-10-28 14:03:10
|
Author: manx Date: Mon Oct 28 15:02:59 2024 New Revision: 22012 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22012 Log: Merged revision(s) 22006 from trunk/OpenMPT: [Fix] mpg123: Enable setmode(). We are not using that code path, but it is required for generally correct Windows/DOS support. ........ Modified: branches/OpenMPT-1.29/ (props changed) branches/OpenMPT-1.29/include/mpg123/ports/MSVC++/config.h branches/OpenMPT-1.29/include/mpg123/ports/makefile/config.h Modified: branches/OpenMPT-1.29/include/mpg123/ports/MSVC++/config.h ============================================================================== --- branches/OpenMPT-1.29/include/mpg123/ports/MSVC++/config.h Mon Oct 28 15:02:36 2024 (r22011) +++ branches/OpenMPT-1.29/include/mpg123/ports/MSVC++/config.h Mon Oct 28 15:02:59 2024 (r22012) @@ -33,6 +33,9 @@ #define strcasecmp _strcmpi #define strncasecmp _strnicmp +/* Windows/DOS */ +#define HAVE__SETMODE + /* Features */ /* #define LFS_LARGEFILE_64 1 */ Modified: branches/OpenMPT-1.29/include/mpg123/ports/makefile/config.h ============================================================================== --- branches/OpenMPT-1.29/include/mpg123/ports/makefile/config.h Mon Oct 28 15:02:36 2024 (r22011) +++ branches/OpenMPT-1.29/include/mpg123/ports/makefile/config.h Mon Oct 28 15:02:59 2024 (r22012) @@ -33,6 +33,13 @@ #define SIZEOF_OFF_T 8 #endif +/* Windows/DOS */ +#if defined(__DJGPP__) +#define HAVE_SETMODE +#elif defined(_WIN32) +#define HAVE__SETMODE +#endif + /* Features */ /* #define LFS_LARGEFILE_64 1 */ |