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

cpphs 1.20.8 chokes on sys/cdefs.h #19

Open
KaneTW opened this issue Jan 18, 2019 · 0 comments
Open

cpphs 1.20.8 chokes on sys/cdefs.h #19

KaneTW opened this issue Jan 18, 2019 · 0 comments

Comments

@KaneTW
Copy link

KaneTW commented Jan 18, 2019

When trying to parse "sys/cdefs.h", the following error occurs:


cpphs: Cannot parse #if directive in file /usr/include/x86_64-linux-gnu/sys/cdefs.h  at line 415 col 1:
    expected ) got ?
CallStack (from HasCallStack):
  error, called at ./Language/Preprocessor/Cpphs/CppIfdef.hs:192:28 in main:Language.Preprocessor.Cpphs.CppIfdef

Relevant statement:

#if (!defined _Noreturn \
     && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \
     &&  !__GNUC_PREREQ (4,7))
# if __GNUC_PREREQ (2,8)
#  define _Noreturn __attribute__ ((__noreturn__))
# else
#  define _Noreturn
# endif
#endif
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

1 participant