gircore / gir.core

A C# binding generator for GObject based libraries providing a C# friendly API surface
https://gircore.github.io/
MIT License
279 stars 29 forks source link

Improve long handling for structs #1065

Closed badcel closed 1 month ago

badcel commented 1 month ago

On windows long has always 32 bit. On Unix it has 32 / 64 bit depending on the system architecture.

This commit generates structs with a field of type "CLong" / "CULong" instead of "long" / "ulong" to match this behavior.

Fixes: #782