[m-rev.] trivial diff: work around C# compiler bug
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Jul 26 10:44:21 AEST 2004
The following is an old patch that was lying around in my workspace.
I haven't verified that it is still necessary, but it should be pretty
harmless anyway.
Estimated hours taken: 0.25
Branches: main
runtime/mercury_dotnet.cs.in:
Add work-around for GNU Portable.NET C# compiler bug.
Workspace: /home/jupiter/fjh/ws-jupiter/mercury
Index: runtime/mercury_dotnet.cs.in
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_dotnet.cs.in,v
retrieving revision 1.2
diff -u -d -r1.2 mercury_dotnet.cs.in
--- runtime/mercury_dotnet.cs.in 14 Nov 2003 10:56:14 -0000 1.2
+++ runtime/mercury_dotnet.cs.in 26 Jul 2004 00:41:08 -0000
@@ -152,6 +152,10 @@
}
}
+// the following "using" declaration works around a bug in GNU Portable.NET's
+// C# compiler
+using System.Runtime.InteropServices;
+
class PInvoke {
[System.Runtime.InteropServices.DllImport("msvcrt.dll")]
public static extern int _putenv(string env);
--
Fergus Henderson | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list