PortMidi / PortMidi-haskell

A Haskell module for PortMidi audio library.
BSD 3-Clause "New" or "Revised" License
13 stars 13 forks source link

Fix c type casts for winmm port #2

Closed onixie closed 8 years ago

onixie commented 8 years ago

Besides the wrong callback pointer casts, the parameters of callbacks to midi open functions should have type DWORD_PTR which will be 64bit long under x86_64 according to [1] and [2]

ninegua commented 8 years ago

Does it fix the Win64 problem you had?

onixie commented 8 years ago

No, actually not. ghci still crashes due to miserable problem on loading modules statically under windows.

But that's a ghci problem I think. it will be gone in future if dynamic loader is fully supported under windows.