Skip to content

c2hs rejects mingw32's stdlib.h #60

Closed
@facundominguez

Description

@facundominguez

Haskell-platform 2013.2.0.0 Windows i386. Current HEAD of master of c2hs.
The following error occurs with current HEAD of master but not with 0.16.5.

$ cat Test.chs
module Test where
#include <sdtlib.h>

$ c2hs Test.chs
c2hs.exe: C header contains errors:

c:\\program files (x86)\\haskell platform\\2013.2.0.0\\mingw\\bin\\../lib/gcc/mingw32/4.5.2/../../../../include/stdlib.h:436: (column 10) [ERROR]  >>> Syntax error !
  The symbol `_atoi64' does not fit here.

The offending lines in stdlib.h are

#ifdef __MSVCRT__
_CRTIMP __int64 __cdecl __MINGW_NOTHROW _atoi64(const char *);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions