From: <sv...@op...> - 2024-10-28 14:02:23
|
Author: manx Date: Mon Oct 28 15:02:11 2024 New Revision: 22010 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22010 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.30/ (props changed) branches/OpenMPT-1.30/include/mpg123/ports/MSVC++/config.h branches/OpenMPT-1.30/include/mpg123/ports/makefile/config.h Modified: branches/OpenMPT-1.30/include/mpg123/ports/MSVC++/config.h ============================================================================== --- branches/OpenMPT-1.30/include/mpg123/ports/MSVC++/config.h Mon Oct 28 15:01:51 2024 (r22009) +++ branches/OpenMPT-1.30/include/mpg123/ports/MSVC++/config.h Mon Oct 28 15:02:11 2024 (r22010) @@ -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.30/include/mpg123/ports/makefile/config.h ============================================================================== --- branches/OpenMPT-1.30/include/mpg123/ports/makefile/config.h Mon Oct 28 15:01:51 2024 (r22009) +++ branches/OpenMPT-1.30/include/mpg123/ports/makefile/config.h Mon Oct 28 15:02:11 2024 (r22010) @@ -35,6 +35,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 */ |