From: <sv...@op...> - 2024-10-28 14:43:09
|
Author: manx Date: Mon Oct 28 15:43:02 2024 New Revision: 22021 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22021 Log: [Fix] mpg123: Fix DJGPP compatibility. Modified: trunk/OpenMPT/include/mpg123/OpenMPT.txt trunk/OpenMPT/include/mpg123/src/compat/compat.c Modified: trunk/OpenMPT/include/mpg123/OpenMPT.txt ============================================================================== --- trunk/OpenMPT/include/mpg123/OpenMPT.txt Mon Oct 28 15:07:31 2024 (r22020) +++ trunk/OpenMPT/include/mpg123/OpenMPT.txt Mon Oct 28 15:43:02 2024 (r22021) @@ -6,6 +6,7 @@ * `ports/Xcode/config.h` has been modified to let the build system set `OPT_*`. * `ports/Xcode/config.h` has been modified to `#define HAVE_DIRENT_H`. + * `src/compat/compat.c` has been modified for DJGPP compatibility. * Modifications are marked by `// OpenMPT` or `/* OpenMPT */`. * Obviously, unnecessary folders and files have been removed. * For building, premake is used to generate Visual Studio project files. Modified: trunk/OpenMPT/include/mpg123/src/compat/compat.c ============================================================================== --- trunk/OpenMPT/include/mpg123/src/compat/compat.c Mon Oct 28 15:07:31 2024 (r22020) +++ trunk/OpenMPT/include/mpg123/src/compat/compat.c Mon Oct 28 15:43:02 2024 (r22021) @@ -10,8 +10,10 @@ */ #include "config.h" +#if !defined(__DJGPP__) /* OpenMPT */ /* This source file does need _POSIX_SOURCE to get some sigaction. */ #define _POSIX_SOURCE +#endif /* OpenMPT */ #include "compat.h" #ifdef _MSC_VER |