[ocaml-ctypes] Defines, and Structs with platform-specific fields
trevorsummerssmith at gmail.com
Mon Oct 20 12:37:37 BST 2014
Of course! Thanks Daniel.
On Mon, Oct 20, 2014 at 7:34 AM, Daniel Bünzli <daniel.buenzli at erratique.ch>
> Le lundi, 20 octobre 2014 à 13:29, Trevor Smith a écrit :
> > Jeremy,
> > The allocate/coerce idea sounds great, however that won't play nicely
> with my cross-platform needs... (unless I am misunderstanding something).
> If you are talking about the size of the struct, just write it with the
> #define constants and/or make a function that returns the size of the
> struct. With that number you can then follow Jeremy's proposal.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ctypes