haskell / haskell/c2hs

One more error with macos and time.h

Open
#274 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
211
Forks
52
PR merge metrics
No merged PRs in 30d

Description

While attempting to depend on the `ncurses` package, build fails with:
```
Configuring ncurses-0.2.16...
Preprocessing library for ncurses-0.2.16..
c2hs: C header contains errors:

/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/time.h:198: (column 23) [ERROR] >>> Syntax error !
The symbol `(' does not fit here.
```

`time.h` on line `198` looks like this:
```
__API_AVAILABLE(macosx(10.15), ios(13.0), tvos(13.0), watchos(6.0))
```

I haven't yet found the workaround that would work.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.