www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24546] New: importC musl setjmp.h failure

https://issues.dlang.org/show_bug.cgi?id=24546

          Issue ID: 24546
           Summary: importC musl setjmp.h failure
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: johanengelen weka.io

importC fails on musl libc setjmp.h, this line:
https://github.com/cloudius-systems/musl/blob/00733dd1cf791d13ff6155509cf139a5f7b2eecb/include/setjmp.h#L15

It uses identifier `__ss` which is #defined by D's importc.h:
https://github.com/dlang/dmd/blame/046679129774bf886e0650fa593c24fb2c7de499/druntime/src/importc.h#L73

Is it really needed to define `__ss` ?

--
May 08