[ocaml-ctypes] Defines, and Structs with platform-specific fields

Trevor Smith 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>
wrote:

>
>
> 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.
>
> Daniel
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/ctypes/attachments/20141020/50cdf6cb/attachment.html>


More information about the Ctypes mailing list