From: Jerome Lambourg Date: Fri, 1 Jan 2021 00:38:00 +0000 (-0300) Subject: Fix testsuite/g++.old-deja/g++.mike/p658.C build failure on VxWorks RTP X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ba5ce389c9b8daeecbcb145a9b77bbc98577d10;p=gcc.git Fix testsuite/g++.old-deja/g++.mike/p658.C build failure on VxWorks RTP The conflicting definition of OK is present in VxWorks RTP headers too. for gcc/testsuite/ChangeLog * g++.old-deja/g++.mike/p658.C: Also undefine OK on VxWorks RTP. --- diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p658.C b/gcc/testsuite/g++.old-deja/g++.mike/p658.C index 8fc7cd51b2b..a6268a36fd7 100644 --- a/gcc/testsuite/g++.old-deja/g++.mike/p658.C +++ b/gcc/testsuite/g++.old-deja/g++.mike/p658.C @@ -12,9 +12,9 @@ #define TRUE true #endif -// The VxWorks kernel-mode headers define a macro named "OK", which is not +// The VxWorks headers define a macro named "OK", which is not // ISO-compliant, but is part of the VxWorks API. -#if defined __vxworks && !defined __RTP__ +#if defined __vxworks #undef OK #endif