You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A number of Microsoft windows DLL's contain two entry points for effectively the same function, with "A" and "W" prefixes to indicate normal (ANSI) or wide strings, for example: winscard.h
The windows import headers .h automatically select between the two variants.
Problem: linux/os-x versions of this library do not have these suffixes, thus making the symbols hash of Deno.dlopen somewhat complicated.
Solution: Add an alias?: string to ForeignFunction, which if set would indicate the symbol name to be imported from the library. This might also help in other cases, such as imported C++ dlls where the symbol names have been munged by the compiler.
The text was updated successfully, but these errors were encountered:
A number of Microsoft windows DLL's contain two entry points for effectively the same function, with "A" and "W" prefixes to indicate normal (ANSI) or wide strings, for example:
winscard.h
The windows import headers
.h
automatically select between the two variants.Problem: linux/os-x versions of this library do not have these suffixes, thus making the
symbols
hash ofDeno.dlopen
somewhat complicated.Solution: Add an
alias?: string
toForeignFunction
, which if set would indicate the symbol name to be imported from the library. This might also help in other cases, such as imported C++ dlls where the symbol names have been munged by the compiler.The text was updated successfully, but these errors were encountered: