Vincent Lefevre <[email protected]> wrote: > > where do you get wchar_t from instead? stddef.h from libc first, if > > possible - tcc's stddef.h is usually wronger than libc > > The GNU libc does not provide a stddef.h. FYI, on my Debian machine:
true > > qaa:~> dlocate include/stddef.h > libclang-common-16-dev: /usr/lib/llvm-16/lib/clang/16/include/stddef.h > libclang-common-15-dev: /usr/lib/llvm-15/lib/clang/15.0.7/include/stddef.h > libclang-common-14-dev: /usr/lib/llvm-14/lib/clang/14.0.6/include/stddef.h > libclang-common-13-dev: /usr/lib/llvm-13/lib/clang/13.0.1/include/stddef.h > gcc-snapshot: > /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/16/accel/amdgcn-amdhsa/include/stddef.h > gcc-snapshot: > /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/16/accel/nvptx-none/include/stddef.h > gcc-snapshot: > /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/16/include/stddef.h > tcc: /usr/lib/x86_64-linux-gnu/tcc/include/stddef.h > libclang-common-21-dev:amd64: /usr/lib/llvm-21/lib/clang/21/include/stddef.h > libgcc-16-dev:amd64: /usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h > libclang-common-17-dev:amd64: /usr/lib/llvm-17/lib/clang/17/include/stddef.h > libclang-common-19-dev:amd64: /usr/lib/llvm-19/lib/clang/19/include/stddef.h > libgcc-12-dev:amd64: /usr/lib/gcc/x86_64-linux-gnu/12/include/stddef.h > libclang-common-18-dev:amd64: /usr/lib/llvm-18/lib/clang/18/include/stddef.h > libclang-common-20-dev:amd64: /usr/lib/llvm-20/lib/clang/20/include/stddef.h > libgcc-15-dev:amd64: /usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h > libgcc-13-dev:amd64: /usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h > libgcc-14-dev:amd64: /usr/lib/gcc/x86_64-linux-gnu/14/include/stddef.h > > i.e. only compilers provide such a file. no, musl libc (also for linux) ships a stddef.h freebsd also ships a stddef.h https://cgit.freebsd.org/src/tree/include/stddef.h?h=vendor/libc%2B%2B/libc%2B%2B-release_900-r372316 a lack of "stddef.h" is another "GNU thing" to "work around" instead of depend on I don't want to depend on GNU libc, afaik that only runs on linux anyway
signature.asc
Description: PGP signature
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
