Bruno Haible <[email protected]> writes: > Collin Funk wrote: >> I have personally not used a compiler that does not support the >> GNU C extension allowing addition to void pointers [1]. Bruno, I am >> curious, do you know of any compilers where that is not the case? > > $ cat foo.c > void * pointerplus (void *p) > { > return p + 2; > } > > MSVC 14 does not support it: > > $ $CC -c foo.c > foo.c > foo.c(3): error C2036: 'void *': unknown size > > But many other compilers do, in particular: > - AIX xlc, > - Sun C, > - TinyCC
Good to know thanks! So if one wants to support MSVC like Gnulib does, they have to be fixed. It seems to work with pcc even, but any executable that is created by that compiler. So it may just not warn and produce a buggy program. Collin
