importC error: _Builtin_stddef
Tim
tim.dlang at t-online.de
Fri Aug 30 16:21:21 UTC 2024
On Friday, 30 August 2024 at 04:49:48 UTC, Dakota wrote:
> get this error:
>
>
> ```sh
> In file included from /llvm/lib/clang/18/include/stddef.h:77,
> from /usr/include/time.h:29,
> from /llvm/include/clang-c/CXFile.h:17,
> from
> /llvm/include/clang-c/CXSourceLocation.h:17,
> from /llvm/include/clang-c/CXDiagnostic.h:17,
> from /llvm/include/clang-c/Index.h:20,
> from /opt/d/D/c2d/src/c2di.c:1:
> /llvm/lib/clang/18/include/__stddef_size_t.h:15:50: error:
> missing binary operator before token "("
> 15 | (__has_feature(modules) &&
> !__building_module(_Builtin_stddef))
> | ^
> In file included from /llvm/lib/clang/18/include/stddef.h:92:
> /llvm/lib/clang/18/include/__stddef_null.h:10:41: error:
> missing binary operator before token "("
> 10 | #if !defined(NULL) ||
> !__building_module(_Builtin_stddef)
>
> ```
As a workaround you could try to add something like this before
any includes:
```
#define __building_module(name) 0
```
More information about the Digitalmars-d-learn
mailing list