From: <sv...@op...> - 2024-09-01 08:32:36
|
Author: manx Date: Sun Sep 1 10:32:29 2024 New Revision: 21563 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21563 Log: Merged revision(s) 21562 from trunk/OpenMPT: [Fix] openmpt123: Work-around cppcheck 2.15.0 getting very confused about Linux glibc headers: "/usr/include/x86_64-linux-gnu/sys/types.h:230: warning: error: There is an unknown macro here somewhere. Configuration is required. If __END_DECLS is a macro then please configure it. [unknownMacro]". ........ Modified: branches/OpenMPT-1.31/ (props changed) branches/OpenMPT-1.31/openmpt123/openmpt123.cpp Modified: branches/OpenMPT-1.31/openmpt123/openmpt123.cpp ============================================================================== --- branches/OpenMPT-1.31/openmpt123/openmpt123.cpp Sun Sep 1 10:31:56 2024 (r21562) +++ branches/OpenMPT-1.31/openmpt123/openmpt123.cpp Sun Sep 1 10:32:29 2024 (r21563) @@ -69,7 +69,9 @@ #include <cstring> #include <ctime> -#if MPT_OS_DJGPP +#if defined(CPPCHECK) +// cppcheck 2.15.0 gets confused by linux/glibc headers +#elif MPT_OS_DJGPP #include <conio.h> #include <crt0.h> #include <dpmi.h> |