From: <sv...@op...> - 2024-09-01 08:32:03
|
Author: manx Date: Sun Sep 1 10:31:56 2024 New Revision: 21562 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21562 Log: [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: trunk/OpenMPT/openmpt123/openmpt123.cpp Modified: trunk/OpenMPT/openmpt123/openmpt123.cpp ============================================================================== --- trunk/OpenMPT/openmpt123/openmpt123.cpp Sun Sep 1 09:40:48 2024 (r21561) +++ trunk/OpenMPT/openmpt123/openmpt123.cpp Sun Sep 1 10:31:56 2024 (r21562) @@ -73,7 +73,9 @@ #include <cstdlib> #include <cstring> -#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> |