[Mono-dev] Multiplatform support with P/Invoke

Miguel de Icaza miguel at xamarin.com
Wed Dec 30 15:34:24 UTC 2015


For something like libc, you can use an approach similar to what Mono.Posix
does, where an intermediate C glue file acts as a bridge between the API
differences.

See the P/Invokes for the Mono.Posix assembly, and its supporting glue code
in mono/support/

On Wed, Dec 30, 2015 at 5:58 AM, Jason Curl <jcurlnews at arcor.de> wrote:

> Hello,
>
> I'm investigating the best way on how to support multiplatform software
> especially when using P/Invokes, but have not found any reasonable advice
> on the Wiki.
>
> Can someone point to me on how to handle different architectures,
> especially when the underlying libc might use different structures or API
> signatures?
>
> Thanks,
> Jason.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20151230/3b874146/attachment.html>


More information about the Mono-devel-list mailing list