public class Test {
- [DllImport ("libtest.so", EntryPoint="mono_test_marshal_delegate_struct")]
+ [DllImport ("libtest", EntryPoint="mono_test_marshal_delegate_struct")]
public static extern int mono_test_marshal_delegate_struct (DelegateStruct s);
public delegate int WndProc (int a);
int size = Marshal.SizeOf (typeof (DelegateStruct));
Console.WriteLine ("DelegateStruct:" + size);
- if (size != 8)
+ if (size != 2 * sizeof(void *)) // not right for 64 bit pointers which can be 4 byte aligned
return 1;
ss.a = 123;