Merge pull request #3903 from kosz78/devel

Fixed THINSTANCE declaration in dynlib.nim for VS compiler
This commit is contained in:
Andreas Rumpf
2016-03-05 14:39:53 +01:00

View File

@@ -78,8 +78,13 @@ elif defined(windows) or defined(dos):
# Native Windows Implementation
# =======================================================================
#
type
THINSTANCE {.importc: "HINSTANCE".} = pointer
when defined(cpp):
type
THINSTANCE {.importc: "HINSTANCE".} = object
x: pointer
else:
type
THINSTANCE {.importc: "HINSTANCE".} = pointer
proc FreeLibrary(lib: THINSTANCE) {.importc, header: "<windows.h>", stdcall.}
proc winLoadLibrary(path: cstring): THINSTANCE {.