Hello List,<br><br>I&#39;m running into a problem with c2hs and how it parses the C typedef &#39;size_t&#39;. On 32bit systems, this ends up being parsed as a CUInt. On 64bit systems, this ends up as a CULong. This gets especially sticky with function pointers.<br>
<br>In order to make bindings with c2hs that work across the different word sizes, I have to write an indirection layer in C that defines wrappers for functions or re-defines typedef&#39;s for function pointers to include &#39;unsigned long&#39; instead of &#39;size_t&#39;.<br>
<br>I see there is a ticket open for this: <a href="http://hackage.haskell.org/trac/c2hs/ticket/20">http://hackage.haskell.org/trac/c2hs/ticket/20</a><br><br>Has any one else run into this issue? Is there a good workaround that doesn&#39;t involve writing a C function/typedef for each collision?<br>
<br>/jve<br>