Message ID | ormu96l7k3.fsf@livre.home |
---|---|
State | New |
Headers | show |
Series | work-around system header namespace pollution | expand |
On Tue, 2020-02-25 at 17:45 -0300, Alexandre Oliva wrote: > Including limits.h on vxworks pollutes the global namespace with SH > and many other platform names; work around it. > > Tested on the affected platform. Ok to install? > > > for gcc/testsuite/ChangeLog > > * gcc.target/aarch64/vect-mull.x (SH): Undefine. OK jeff
diff --git a/gcc/testsuite/gcc.target/aarch64/vect-mull.x b/gcc/testsuite/gcc.target/aarch64/vect-mull.x index 39ec43d..930e703 100644 --- a/gcc/testsuite/gcc.target/aarch64/vect-mull.x +++ b/gcc/testsuite/gcc.target/aarch64/vect-mull.x @@ -9,6 +9,7 @@ typedef unsigned short *__restrict__ pRUINT16; typedef unsigned int *__restrict__ pRUINT32; typedef unsigned long long *__restrict__ pRUINT64; +#undef SH /* Including limits.h on vxworks defines this. */ typedef signed short SH; typedef unsigned short UH; typedef signed int SS;