Fixed THINSTANCE declaration in dynlib.nim for VS compiler

This commit is contained in:
Konstantin Zaitsev 2016-02-25 15:03:02 +06:00
commit 2693179834

View file

@ -79,7 +79,8 @@ elif defined(windows) or defined(dos):
# ======================================================================= # =======================================================================
# #
type type
THINSTANCE {.importc: "HINSTANCE".} = pointer THINSTANCE {.importc: "HINSTANCE".} = object
x: pointer
proc FreeLibrary(lib: THINSTANCE) {.importc, header: "<windows.h>", stdcall.} proc FreeLibrary(lib: THINSTANCE) {.importc, header: "<windows.h>", stdcall.}
proc winLoadLibrary(path: cstring): THINSTANCE {. proc winLoadLibrary(path: cstring): THINSTANCE {.