On Wed, May 28, 2008 at 12:46 AM, Olivier Boudry <[EMAIL PROTECTED]> wrote: > If the calling convention is stdcall on Windows and ccall on other OS then > it should be defined based on the OS. This can be done by updating the .hsc > files to define the calling convention as a "macro" depending on the OS > type. > > #ifdef mingw32_HOST_OS > #let CALLCONV = "stdcall" > #else > #let CALLCONV = "ccall" > #endif > > And the foreign import should use CALLCONV instead of ccall. > > This should make it work on Windows and not break it on Linux.
Thanks Olivier, that's neater than I thought. I'll put a patch together. -- Andrew _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
