Skip to content

Commit

Permalink
Fix testsuite/g++.old-deja/g++.mike/p658.C build failure on VxWorks RTP
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lambourg authored and Alexandre Oliva committed Jan 1, 2021
1 parent 0bcaee8 commit 7ba5ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcc/testsuite/g++.old-deja/g++.mike/p658.C
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7ba5ce3

Please sign in to comment.