Old-style "DPI" specified subroutines are deprecated.
Use the new-style "DPI-C" instead which has a well-defined standardized calling convention.
import "DPI" function void foo();