Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Darwin: The symbol `_9' does not fit here. #259

Open
anttih opened this issue Aug 23, 2020 · 1 comment
Open

Darwin: The symbol `_9' does not fit here. #259

anttih opened this issue Aug 23, 2020 · 1 comment

Comments

@anttih
Copy link

anttih commented Aug 23, 2020

c2hs (or language-c) does not seem to be able to parse the value 10_9

c2hs: C header contains errors:

/nix/store/pz99r8hkn8ym8vpn45hfj441py9r82qz-apple-framework-CoreFoundation/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:665: (column 117) [ERROR]  >>> Syntax error !
  The symbol `_9' does not fit here.

The line in CFBase.hs is this:

CFTypeRef CFAutorelease(CFTypeRef CF_RELEASES_ARGUMENT arg) CF_AVAILABLE(10_9, 7_0);

I definition for CF_AVAILABLE seems to be this:

#define CF_AVAILABLE(_mac, _ios) __attribute__((availability(macosx,introduced=_mac)))

c2hs version: 0.28.6

@anttih anttih changed the title The symbol `_9' does not fit here. Darwin: The symbol `_9' does not fit here. Aug 23, 2020
@deech
Copy link
Contributor

deech commented Aug 24, 2020

This is unfortunately a limitation of language-c. Here is a workaround #255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants