diff --git a/Source/Bind/FuncProcessor.cs b/Source/Bind/FuncProcessor.cs index 0627dadd..072e2dde 100644 --- a/Source/Bind/FuncProcessor.cs +++ b/Source/Bind/FuncProcessor.cs @@ -150,19 +150,19 @@ namespace Bind if (d.ReturnType.CurrentType.ToLower().Contains("void") && d.ReturnType.Pointer != 0) { - d.ReturnType.QualifiedType = "System.IntPtr"; + d.ReturnType.QualifiedType = "IntPtr"; d.ReturnType.WrapperType = WrapperTypes.GenericReturnType; } if (d.ReturnType.CurrentType.ToLower().Contains("string")) { - d.ReturnType.QualifiedType = "System.IntPtr"; + d.ReturnType.QualifiedType = "IntPtr"; d.ReturnType.WrapperType = WrapperTypes.StringReturnType; } if (d.ReturnType.CurrentType.ToLower() == "object") { - d.ReturnType.QualifiedType = "System.IntPtr"; + d.ReturnType.QualifiedType = "IntPtr"; d.ReturnType.WrapperType |= WrapperTypes.GenericReturnType; } diff --git a/Source/Bind/Structures/Parameter.cs b/Source/Bind/Structures/Parameter.cs index 17506c2c..988b0ec2 100644 --- a/Source/Bind/Structures/Parameter.cs +++ b/Source/Bind/Structures/Parameter.cs @@ -610,7 +610,7 @@ namespace Bind.Structures { if (((Settings.Compatibility & Settings.Legacy.TurnVoidPointersToIntPtr) != Settings.Legacy.None) && p.Pointer != 0 && p.CurrentType.Contains("void")) - sb.Append("(System.IntPtr)"); + sb.Append("(IntPtr)"); else { sb.Append("(");