[Pkg-haskell-maintainers] Bug#680329: Bug#680329: Interpreted an int64_t typedef as CInt
Erik de Castro Lopo
erikd at mega-nerd.com
Thu Jul 5 03:03:33 UTC 2012
Josh Triplett wrote:
> Package: c2hs
> Version: 0.16.3-2
> Severity: important
>
> A library I'd like to write bindings to has a typedef of int64_t to a
> library-specific type name. c2hs seems to interpret that type as CInt,
> both in foreign import declarations and in {# type #} directives. It
> should interpret that type as a 64-bit integer type instead.
I've seen this happen before and the cause was that the header file
defining the int64_t to something else did not include <stdint.h>.
I think the solution was to tell c2hs somehow that <stdint.h> should be
included before the project specific header.
HTH,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the Pkg-haskell-maintainers
mailing list