From 2fc35f4d700b367c5bd7b310bcdf4934a1a032f7 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 7 Dec 2010 01:26:11 +0000 Subject: [PATCH] Add APIENTRY to allow calling convention definitions. --- Source/Bind/CppSpecWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Bind/CppSpecWriter.cs b/Source/Bind/CppSpecWriter.cs index 5896508f..676d428a 100644 --- a/Source/Bind/CppSpecWriter.cs +++ b/Source/Bind/CppSpecWriter.cs @@ -376,7 +376,7 @@ namespace Bind var parameters = d.Parameters.ToString() .Replace("String[]", "String*") .Replace("[OutAttribute]", String.Empty); - sw.WriteLine("typedef {0} (*p{1}){2};", d.ReturnType, d.Name, parameters); + sw.WriteLine("typedef {0} (APIENTRY *p{1}){2};", d.ReturnType, d.Name, parameters); sw.WriteLine("extern p{0} {0};", d.Name); } }